diff options
author | megamage <none@none> | 2009-07-23 09:34:42 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-23 09:34:42 +0800 |
commit | 4a0d187cd68e871be45fe662fbcb95ccebe68cce (patch) | |
tree | 05acbda04612a4224ce4f749432b3a3451443aa3 /src/game/MiscHandler.cpp | |
parent | 2126ec3395cd7dd60d7d90bfa88b03fb99a04f29 (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.cpp | 2 |
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; |