From c1daf6567c400893e6ccf46cd582216a67bd7011 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 12 Aug 2009 13:31:05 -0500 Subject: *Fix a crash caused by recall pet. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 74eafcbba54..46ed5761b27 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4064,6 +4064,7 @@ void Spell::EffectSummonPet(uint32 i) owner->GetClosePoint(px, py, pz, OldSummon->GetObjectSize()); OldSummon->Relocate(px, py, pz, OldSummon->GetOrientation()); + OldSummon->SetMap(owner->GetMap()); owner->GetMap()->Add((Creature*)OldSummon); if(owner->GetTypeId() == TYPEID_PLAYER && OldSummon->isControlled() ) -- cgit v1.2.3