diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 41ad8b23982..df122d1f96e 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -19397,11 +19397,13 @@ void Player::resetSpells(bool myClassOnly) // and we can't use original map for safe iterative with visit each spell at loop end PlayerSpellMap smap = GetSpellMap(); + uint32 family; + if(myClassOnly){ ChrClassesEntry const* clsEntry = sChrClassesStore.LookupEntry(m_session->GetPlayer()->getClass()); if(!clsEntry) return; - uint32 family = clsEntry->spellfamily; + family = clsEntry->spellfamily; } for(PlayerSpellMap::const_iterator iter = smap.begin();iter != smap.end(); ++iter) |