wb: add debug info

This commit is contained in:
gfgtdf 2018-05-02 21:46:46 +02:00
parent 05ab8e275f
commit 576bdea529

View file

@ -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();