diff options
author | Anubisss <none@none> | 2009-08-28 14:51:37 +0200 |
---|---|---|
committer | Anubisss <none@none> | 2009-08-28 14:51:37 +0200 |
commit | 183e4c4bf9d8bc4dc57dcb61359ac07cc433971d (patch) | |
tree | a706426bc24ebeaba29c8005654e4eac7ef49849 /src | |
parent | e3eecc4de5ac34d042577df8e3937465ed297938 (diff) |
*Fix compile.
--HG--
branch : trunk
Diffstat (limited to 'src')
-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) |