Merge pull request #793 from GregoryLundberg/GL_debug_kill

Fix bug: Debug|Kill [have_unit] error
This commit is contained in:
Celtic Minstrel 2016-09-19 20:23:34 -04:00 committed by GitHub
commit f096a22e2e

View file

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