diff options
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 6a670d8c97a..64415e2c4ed 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2500,7 +2500,9 @@ void SpellMgr::LoadPetLevelupSpellMap() continue; if (!spell->spellLevel) continue; - mPetLevelupSpellMap[creatureFamily->ID][spell->spellLevel] = spell->Id; + if (!spell->SpellFamilyName) + continue; + mPetLevelupSpellMap.insert(PetLevelupSpellMap::value_type(creatureFamily->ID, std::make_pair(spell->spellLevel , spell->Id ))); count++; } } |