diff options
author | megamage <none@none> | 2009-04-04 14:08:17 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-04-04 14:08:17 -0600 |
commit | 0376c70fd98a8ffa683652dbd88690f77607baf6 (patch) | |
tree | 57cf491343622f5d33bcc5c432ab3975906344b0 /src | |
parent | eb9bb0dc5d6759683321f5ad09ea88784cc8617a (diff) |
*FIx a bug that pet cause crash.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Pet.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 8987939fc4b..efdee1f0d54 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -293,8 +293,6 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool } } - delete result; - //load spells/cooldowns/auras // Spells should be loaded after pet is added to map, because in CheckCast is check on it // since last save (in seconds) @@ -302,6 +300,7 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool _LoadAuras(timediff); CastPetAuras(current); + delete result; sLog.outDebug("New Pet has guid %u", GetGUIDLow()); owner->PetSpellInitialize(); |