*Fix the error in 5477 which makes server freeze.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-30 11:24:56 -05:00
parent cceab34cff
commit c5fe210461
2 changed files with 12 additions and 12 deletions

View File

@@ -2417,7 +2417,7 @@ bool ChatHandler::HandleLearnAllMyTalentsCommand(const char* /*args*/)
// search highest talent rank
uint32 spellId = 0;
for(uint8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
for(int8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
{
if(talentInfo->RankID[rank] != 0)
{
@@ -2493,7 +2493,7 @@ bool ChatHandler::HandleLearnAllMyPetTalentsCommand(const char* /*args*/)
// search highest talent rank
uint32 spellid = 0;
for(uint8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
for(int8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
{
if(talentInfo->RankID[rank]!=0)
{