summaryrefslogtreecommitdiff
path: root/src/game/unit_soldier.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-21 14:18:28 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-21 14:18:28 +0200
commit7c56f59aedddb6bb18d85e778a3acbef16b4c54f (patch)
tree5994012f810d59c8e9e80818f53469539e09ac8e /src/game/unit_soldier.cpp
parent7798f9ada1a4248e178734bc5adfd3b609bdb9a6 (diff)
Deselect all types of units when they die.
Diffstat (limited to 'src/game/unit_soldier.cpp')
-rw-r--r--src/game/unit_soldier.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/game/unit_soldier.cpp b/src/game/unit_soldier.cpp
index 7985df6..0ffe19f 100644
--- a/src/game/unit_soldier.cpp
+++ b/src/game/unit_soldier.cpp
@@ -228,7 +228,6 @@ void unit_soldier_t::on_death(void)
cmodel.cflags = CF_BACKGROUND;
place(world, x);
controllable = false;
- game->selected_units.erase(this);
move_marker.reset();
aim_marker.reset();
}