wb: add debug info
This commit is contained in:
parent
6cfe64e4da
commit
c9df4bf02a
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue