summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/units.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 279bf0b..9a098a8 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -308,6 +308,9 @@ void unit_soldier_t::check_area(void)
if (!ent)
continue;
+ if (ent == this)
+ continue;
+
// Wake everything around.
if (!ent->ignore_waking) {
ent->wake_time = game->now;