*FIx a bug that pet cause crash.
--HG-- branch : trunk
This commit is contained in:
+1
-2
@@ -293,8 +293,6 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete result;
|
|
||||||
|
|
||||||
//load spells/cooldowns/auras
|
//load spells/cooldowns/auras
|
||||||
// Spells should be loaded after pet is added to map, because in CheckCast is check on it
|
// Spells should be loaded after pet is added to map, because in CheckCast is check on it
|
||||||
// since last save (in seconds)
|
// since last save (in seconds)
|
||||||
@@ -302,6 +300,7 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
|
|||||||
_LoadAuras(timediff);
|
_LoadAuras(timediff);
|
||||||
CastPetAuras(current);
|
CastPetAuras(current);
|
||||||
|
|
||||||
|
delete result;
|
||||||
sLog.outDebug("New Pet has guid %u", GetGUIDLow());
|
sLog.outDebug("New Pet has guid %u", GetGUIDLow());
|
||||||
|
|
||||||
owner->PetSpellInitialize();
|
owner->PetSpellInitialize();
|
||||||
|
|||||||
Reference in New Issue
Block a user