*Fix compile.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-08-28 14:51:37 +02:00
parent e3eecc4de5
commit 183e4c4bf9

View File

@@ -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)