aboutsummaryrefslogtreecommitdiff
path: root/src/game/MiscHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-23 09:34:42 +0800
committermegamage <none@none>2009-07-23 09:34:42 +0800
commit4a0d187cd68e871be45fe662fbcb95ccebe68cce (patch)
tree05acbda04612a4224ce4f749432b3a3451443aa3 /src/game/MiscHandler.cpp
parent2126ec3395cd7dd60d7d90bfa88b03fb99a04f29 (diff)
[8193] Use constant instead explicit value in title index checks. Author: XTZGZoReX
--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 aeec27ced32..2488e7696e0 100644
--- a/src/game/MiscHandler.cpp
+++ b/src/game/MiscHandler.cpp
@@ -1493,7 +1493,7 @@ void WorldSession::HandleSetTitleOpcode( WorldPacket & recv_data )
recv_data >> title;
// -1 at none
- if(title > 0 && title < 192)
+ if(title > 0 && title < MAX_TITLE_INDEX)
{
if(!GetPlayer()->HasTitle(title))
return;