[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

@ -1352,7 +1352,7 @@ uint32 ChatHandler::extractSpellIdFromLink(char* text)
return 0;
int32 rank = param1_str ? (uint32)atol(param1_str) : 0;
if(rank >= 5)
if(rank >= MAX_TALENT_RANK)
return 0;
if(rank < 0)