diff options
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 62ad688e52e..10eafcba93d 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1068,6 +1068,7 @@ WorldObject::WorldObject() mSemaphoreTeleport = false; m_isActive = false; + IsTempWorldObject = false; } void WorldObject::SetWorldObject(bool on) @@ -1600,7 +1601,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]) |