aboutsummaryrefslogtreecommitdiff
path: root/src/game/MiscHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-21 14:55:10 -0600
committermegamage <none@none>2009-03-21 14:55:10 -0600
commit7de6113d908ccec0c8f1585a346bb16c5e7920f7 (patch)
tree38695302bf2f26c917fb50e02365d0c2ad49c46b /src/game/MiscHandler.cpp
parent42d5b79eead2608c00c1068a5eec98798333fc42 (diff)
[7509] Use defines instead explcit value for talent rank cound (in general and for pets) Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/MiscHandler.cpp')
-rw-r--r--src/game/MiscHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp
index b284db806d7..7dc3154bec7 100644
--- a/src/game/MiscHandler.cpp
+++ b/src/game/MiscHandler.cpp
@@ -1198,7 +1198,7 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
// find talent rank
uint32 curtalent_maxrank = 0;
- for(uint32 k = 5; k > 0; --k)
+ for(uint32 k = MAX_TALENT_RANK; k > 0; --k)
{
if(talentInfo->RankID[k-1] && plr->HasSpell(talentInfo->RankID[k-1]))
{