diff options
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r-- | src/game/Pet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 1205ed641f0..bf150ec3a42 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1475,7 +1475,10 @@ void Pet::InitPetCreateSpells() { m_charmInfo->InitPetActionBar(); + for (PetSpellMap::iterator i = m_spells.begin(); i != m_spells.end(); ++i) + delete i->second; m_spells.clear(); + uint32 petspellid; PetCreateSpellEntry const* CreateSpells = objmgr.GetPetCreateSpellEntry(GetEntry()); if(CreateSpells) |