Skip to content

Commit

Permalink
Initialize all members.
Browse files Browse the repository at this point in the history
Issue found by cppcheck.
  • Loading branch information
mordante committed Feb 22, 2014
1 parent e1a2756 commit 698eeb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/attack.hpp
Expand Up @@ -110,7 +110,7 @@ struct battle_context_unit_stats
weapon(NULL), attack_num(0), is_attacker(true), // These are not used in attack prediction.
is_poisoned(false), is_slowed(slowed),
slows(slows), drains(drain), petrifies(false), plagues(false),
poisons(false), backstab_pos(false), swarm(do_swarm), firststrike(first),
poisons(false), backstab_pos(false), swarm(do_swarm), firststrike(first), disable(false),
experience(0), max_experience(50), level(1), // No units should advance in the attack prediction tests.
rounds(berserk ? 30 : 1),
hp(std::max<int>(0, hitpoints)), max_hp(std::max<int>(1, maximum_hp)),
Expand Down

0 comments on commit 698eeb0

Please sign in to comment.