Merge pull request #793 from GregoryLundberg/GL_debug_kill
Fix bug: Debug|Kill [have_unit] error
This commit is contained in:
commit
f096a22e2e
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