Fix bug: Debug|Kill [have_unit] error
Set the killed units hit points to zero so [have_unit] does not find it.
This commit is contained in:
parent
83bd6cdfbf
commit
c66325856b
1 changed files with 1 additions and 0 deletions
|
@ -518,6 +518,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_kill, child, use_undo, /*show*/, /*error_h
|
|||
unit_display::unit_die(loc, *i);
|
||||
}
|
||||
resources::screen->redraw_minimap();
|
||||
i->set_hitpoints(0);
|
||||
resources::controller->pump().fire("die", loc, loc);
|
||||
if (i.valid()) {
|
||||
resources::units->erase(i);
|
||||
|
|
Loading…
Add table
Reference in a new issue