aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/UnitAI.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/UnitAI.h b/src/game/UnitAI.h
index 9530405ed4d..3e6ce4f4a6f 100644
--- a/src/game/UnitAI.h
+++ b/src/game/UnitAI.h
@@ -23,6 +23,7 @@
#include "Platform/Define.h"
#include <list>
+#include "Unit.h"
class Unit;
class Player;
@@ -47,7 +48,7 @@ class TRINITY_DLL_SPEC UnitAI
virtual void AttackStart(Unit *);
virtual void UpdateAI(const uint32 diff) = 0;
- virtual void InitializeAI() { Reset(); }
+ virtual void InitializeAI() { if(!me->isDead()) Reset(); }
virtual void Reset() {};