Core/Pets: Fixed crash happening when current pet is forcibly removed while being temporarily unsummoned (like on a mount)

(cherry picked from commit d163735abd)
This commit is contained in:
Shauren
2020-09-29 17:31:50 +02:00
parent e102022eeb
commit 688d1d9533
2 changed files with 17 additions and 2 deletions

View File

@@ -3604,7 +3604,7 @@ void Spell::EffectDismissPet()
Pet* pet = unitTarget->ToPet();
ExecuteLogEffectUnsummonObject(SpellEffectName(effectInfo->Effect), pet);
pet->GetOwner()->RemovePet(pet, PET_SAVE_NOT_IN_SLOT);
pet->Remove(PET_SAVE_NOT_IN_SLOT);
}
void Spell::EffectSummonObject()