From 7c56f59aedddb6bb18d85e778a3acbef16b4c54f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 21 Apr 2018 14:18:28 +0200 Subject: Deselect all types of units when they die. --- src/game/unit_soldier.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/game/unit_soldier.cpp') 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(); } -- cgit