aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureAI.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-13 17:53:09 -0500
committermegamage <none@none>2009-04-13 17:53:09 -0500
commit6b11f9a511ac5893b93f693b5320e3a89bb5f349 (patch)
tree2ca868b16e23601d968db823561044ff695cd598 /src/game/CreatureAI.h
parentce9f023a9607f827ad2479e2df09ced6554f43b6 (diff)
*Call new function InitializeAI() instead of Reset() to do one-time work.
--HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureAI.h')
-rw-r--r--src/game/CreatureAI.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/CreatureAI.h b/src/game/CreatureAI.h
index 275ecbeb3b4..b7a584fd36e 100644
--- a/src/game/CreatureAI.h
+++ b/src/game/CreatureAI.h
@@ -79,7 +79,8 @@ class TRINITY_DLL_SPEC UnitAI
virtual void AttackStart(Unit *);
virtual void UpdateAI(const uint32 diff) = 0;
- // Initialize
+ virtual void InitializeAI() { Reset(); }
+
virtual void Reset() {};
// Called when unit is charmed