* Fix Build

--HG--
branch : trunk
This commit is contained in:
biglad
2009-08-30 11:47:29 +01:00
parent 86a4d496e7
commit 8db1370cd6
+2 -2
View File
@@ -2429,12 +2429,12 @@ bool ChatHandler::HandleLearnAllMyTalentsCommand(const char* /*args*/)
if(!spellId) // ??? none spells in talent if(!spellId) // ??? none spells in talent
continue; continue;
SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellid); SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellId);
if(!spellInfo || !SpellMgr::IsSpellValid(spellInfo,m_session->GetPlayer(),false)) if(!spellInfo || !SpellMgr::IsSpellValid(spellInfo,m_session->GetPlayer(),false))
continue; continue;
// learn highest rank of talent and learn all non-talent spell ranks (recursive by tree) // learn highest rank of talent and learn all non-talent spell ranks (recursive by tree)
player->learnSpellHighRank(spellid); player->learnSpellHighRank(spellId);
} }
SendSysMessage(LANG_COMMAND_LEARN_CLASS_TALENTS); SendSysMessage(LANG_COMMAND_LEARN_CLASS_TALENTS);