Skip to content

Commit

Permalink
Simplify melee::clear_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway committed May 2, 2020
1 parent cb7d243 commit c1441bb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/melee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2392,14 +2392,7 @@ melee_statistic_data melee::get_stats()

void melee::clear_stats()
{
melee_stats.attack_count = 0;
melee_stats.hit_count = 0;
melee_stats.double_crit_count = 0;
melee_stats.crit_count = 0;
melee_stats.double_crit_chance = 0.0;
melee_stats.crit_chance = 0.0;
melee_stats.actual_crit_count = 0;
melee_stats.damage_amount = 0;
melee_stats = melee_statistic_data{};
}

namespace melee
Expand Down

0 comments on commit c1441bb

Please sign in to comment.