[7509] Use defines instead explcit value for talent rank cound (in general and for pets)

This commit is contained in:
VladimirMangos 2009-03-21 20:12:16 +03:00
parent befa6c5c86
commit 695ceabe3e
9 changed files with 27 additions and 24 deletions

View file

@ -1766,8 +1766,8 @@ bool ChatHandler::HandleLearnAllMyTalentsCommand(const char* /*args*/)
// search highest talent rank
uint32 spellid = 0;
int rank = 4;
for(; rank >= 0; --rank)
for(int rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
{
if(talentInfo->RankID[rank]!=0)
{