From 21af4cf832daeccb1617e37e15cd7b9bcebfb6c8 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 26 Aug 2009 19:28:21 -0500 Subject: *Some clean up and add debug info to find the reason of crash. --HG-- branch : trunk --- src/game/TemporarySummon.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/TemporarySummon.cpp') diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index 75d34ed2f3b..da039c2276c 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -298,6 +298,11 @@ void Minion::RemoveFromWorld() TempSummon::RemoveFromWorld(); } +bool Minion::IsGuardianPet() const +{ + return isPet() || m_Properties && m_Properties->Category == SUMMON_CATEGORY_PET; +} + Guardian::Guardian(SummonPropertiesEntry const *properties, Unit *owner) : Minion(properties, owner) , m_bonusdamage(0) { -- cgit v1.2.3