aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-24 11:28:00 -0600
committermegamage <none@none>2009-01-24 11:28:00 -0600
commit30f6b38941e907c20dbb68f514eaf1345082abd3 (patch)
tree883bbfd30c30a2ea093f07fe7195a5d74a7bc2a0 /src/game/Unit.cpp
parentf0ebb960642ad0fa43fa49fd3cc76f6516de6cd3 (diff)
*Update to Mangos 7158.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 471ff053550..b90bd733a6d 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9559,6 +9559,8 @@ Unit* Creature::SelectHostilTarget()
//threat list sorting etc.
+ if (!this->isAlive())
+ return false;
//This function only useful once AI has been initialized
if (!AI())
return NULL;