aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-06 19:52:46 -0600
committermegamage <none@none>2009-03-06 19:52:46 -0600
commitf6ca5c601ef6089220fb0bfe3bc155fbbf3de812 (patch)
treeb9598e93d132aea806527aa4de13046e3c80dc5d /src/game/Object.cpp
parentdbb8c78394660c277f9056d899df8b0f9f1f8cb0 (diff)
parent4f6c96b98c5d5a065f902aa6106c928bf0b2a668 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index ab79ca366e4..62f9c606b6b 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1603,7 +1603,7 @@ Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, floa
pCreature->SetHomePosition(x, y, z, ang);
pCreature->Summon(spwtype, despwtime);
- if(GetTypeId()==TYPEID_UNIT && ((Creature*)this)->AI())
+ if(GetTypeId()==TYPEID_UNIT && ((Creature*)this)->IsAIEnabled)
((Creature*)this)->AI()->JustSummoned(pCreature);
if(pCreature->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER && pCreature->m_spells[0])