From 7ecbb101fd493d70b92757ce81e06f3c9a3d2d03 Mon Sep 17 00:00:00 2001 From: killerwife Date: Thu, 11 Jan 2024 16:10:16 +0100 Subject: [PATCH] Pet: Add assert for double unsummon of same pet. Diagnostics for this PR: https://github.com/cmangos/mangos-wotlk/pull/478 --- src/game/Entities/Pet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/Entities/Pet.cpp b/src/game/Entities/Pet.cpp index d3c911967b8..8b8f6f4e16b 100644 --- a/src/game/Entities/Pet.cpp +++ b/src/game/Entities/Pet.cpp @@ -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();