Skip to content

Commit

Permalink
Pet: Add assert for double unsummon of same pet.
Browse files Browse the repository at this point in the history
Diagnostics for this PR:

#478
  • Loading branch information
killerwife committed Jan 11, 2024
1 parent db3f104 commit 7ecbb10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/Entities/Pet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ bool Pet::CanTakeMoreActiveSpells(uint32 spellid)

void Pet::Unsummon(PetSaveMode mode, Unit* owner /*= nullptr*/)
{
MANGOS_ASSERT(!m_removed);

if (!owner)
owner = GetOwner();

Expand Down

0 comments on commit 7ecbb10

Please sign in to comment.