mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Fix a crash caused by recall pet.
--HG-- branch : trunk
This commit is contained in:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user