*Some clean up and add debug info to find the reason of crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-26 19:28:21 -05:00
parent 390257b2f6
commit 21af4cf832
11 changed files with 88 additions and 58 deletions

View File

@@ -792,7 +792,7 @@ bool Guardian::InitStatsForLevel(uint32 petlevel)
//Determine pet type
PetType petType = MAX_PET_TYPE;
if(HasUnitTypeMask(UNIT_MASK_PET) && m_owner->GetTypeId() == TYPEID_PLAYER)
if(isPet() && m_owner->GetTypeId() == TYPEID_PLAYER)
{
if(m_owner->getClass() == CLASS_WARLOCK)
petType = SUMMON_PET;