mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7509] Use defines instead explcit value for talent rank cound (in general and for pets)
This commit is contained in:
parent
befa6c5c86
commit
695ceabe3e
9 changed files with 27 additions and 24 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue