Skip to content

Commit

Permalink
wb: add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed May 3, 2018
1 parent 05ab8e2 commit 576bdea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/whiteboard/attack.cpp
Expand Up @@ -79,6 +79,7 @@ attack::attack(const config& cfg, bool hidden)
throw action::ctor_err("attack: Invalid weapon_choice_");

// Construct attack_movement_cost_
assert(get_unit());
attack_movement_cost_ = get_unit()->attacks()[weapon_choice_].movement_used();

this->init();
Expand Down

0 comments on commit 576bdea

Please sign in to comment.