aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-12 14:15:44 -0600
committermegamage <none@none>2009-03-12 14:15:44 -0600
commit1fbfc6da645058a6da3073dafde0e6bca621e31c (patch)
treee8046c844ec548cdee29d8eee5c9ecfc1b9d9ec2 /src/game/Creature.h
parentab6e9bd7b43b2bbce899a780cdd942ac137e7d99 (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.h4
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
{