From 30f6b38941e907c20dbb68f514eaf1345082abd3 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 24 Jan 2009 11:28:00 -0600 Subject: *Update to Mangos 7158. --HG-- branch : trunk --- src/game/Unit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/Unit.cpp') 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; -- cgit v1.2.3