mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
fix(Core/Pets): fixed crash happening when current pet is forcibly removed (#10025)
This commit is contained in:
@@ -4713,7 +4713,7 @@ void Spell::EffectDismissPet(SpellEffIndex effIndex)
|
||||
Pet* pet = unitTarget->ToPet();
|
||||
|
||||
ExecuteLogEffectUnsummonObject(effIndex, pet);
|
||||
pet->GetOwner()->RemovePet(pet, PET_SAVE_NOT_IN_SLOT);
|
||||
pet->Remove(PET_SAVE_NOT_IN_SLOT);
|
||||
}
|
||||
|
||||
void Spell::EffectSummonObject(SpellEffIndex effIndex)
|
||||
|
||||
Reference in New Issue
Block a user