mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
*Fix the error in 5477 which makes server freeze.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user