diff options
author | megamage <none@none> | 2009-08-12 13:31:05 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-12 13:31:05 -0500 |
commit | c1daf6567c400893e6ccf46cd582216a67bd7011 (patch) | |
tree | 0dcc9d18ed3511000493cc87b0a0afbe8acdd840 /src | |
parent | a30e3b7bd3483bc19be6ab4eebe94d9d79c382f6 (diff) |
*Fix a crash caused by recall pet.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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() ) |