fix(Core/Pets): fixed crash happening when current pet is forcibly removed (#10025)
This commit is contained in:
@@ -285,7 +285,7 @@ void TempSummon::UnSummon(uint32 msTime)
|
||||
//ASSERT(!IsPet());
|
||||
if (IsPet())
|
||||
{
|
||||
((Pet*)this)->Remove(PET_SAVE_NOT_IN_SLOT);
|
||||
ToPet()->Remove(PET_SAVE_NOT_IN_SLOT);
|
||||
ASSERT(!IsInWorld());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user