summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/units.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 35961ef..c8ba2d8 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -456,6 +456,8 @@ void unit_soldier_t::on_death(void)
render_layer = -1;
cmodel.cflags = CF_BACKGROUND;
place(world, x);
+ controllable = false;
+ game->selected_units.erase(this);
}
void unit_soldier_t::render_to(render::state_t *render)