*Fix a crash caused by recall pet.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-12 13:31:05 -05:00
parent a30e3b7bd3
commit c1daf6567c

View File

@@ -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() )