summaryrefslogtreecommitdiff
path: root/src/game/units.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/units.cpp')
-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 4e2b2aa..da6b1a3 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -431,6 +431,8 @@ void unit_soldier_t::on_think(void)
void unit_soldier_t::on_death(void)
{
+ game->selected_units.erase(this);
+
render_size[0] = v2f_t(-0.75f, -0.5f);
render_size[1] = v2f_t(+0.75f, +0.5f);
render_layer = -1;