diff options
author | megamage <none@none> | 2009-03-12 14:15:44 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-12 14:15:44 -0600 |
commit | 1fbfc6da645058a6da3073dafde0e6bca621e31c (patch) | |
tree | e8046c844ec548cdee29d8eee5c9ecfc1b9d9ec2 /src/game/Creature.h | |
parent | ab6e9bd7b43b2bbce899a780cdd942ac137e7d99 (diff) |
*Assign possessed AI and pet AI to charmed creatures.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r-- | src/game/Creature.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h index fc5318c1cdb..b477ea00f1d 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -401,8 +401,6 @@ typedef std::map<uint32,time_t> CreatureSpellCooldowns; class TRINITY_DLL_SPEC Creature : public Unit { - CreatureAI *i_AI; - public: explicit Creature(); @@ -468,7 +466,7 @@ class TRINITY_DLL_SPEC Creature : public Unit bool AIM_Initialize(CreatureAI* ai = NULL); void AI_SendMoveToPacket(float x, float y, float z, uint32 time, uint32 MovementFlags, uint8 type); - CreatureAI* AI() { return i_AI; } + CreatureAI* AI() { return (CreatureAI*)i_AI; } uint32 GetShieldBlockValue() const //dunno mob block value { |