wb: add debug info

This commit is contained in:
gfgtdf 2018-05-02 21:46:46 +02:00 committed by Charles Dang
parent 6cfe64e4da
commit c9df4bf02a

View file

@ -78,6 +78,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();
}