diff options
author | QAston <none@none> | 2010-01-18 23:12:35 +0100 |
---|---|---|
committer | QAston <none@none> | 2010-01-18 23:12:35 +0100 |
commit | a1bbbd1421d29edd02feb2e19df8b07c9484f59d (patch) | |
tree | 7a64117ff17d3c44a0677ca05256366044c3ca3c /src/game/SpellEffects.cpp | |
parent | c7c3b0edb06abbbbf5ffc54ed9e499a04e62c645 (diff) |
*Cleanups before delete after not successfull load pet from db. Thanks to Drahy for debug traces.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 76f2af18c50..bf48dfaddc9 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4855,7 +4855,10 @@ void Spell::EffectScriptEffect(uint32 effIndex) } } else + { + NewPet->CleanupsBeforeDelete(); delete NewPet; + } } } return; |