aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.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/Player.cpp
parent2126ec3395cd7dd60d7d90bfa88b03fb99a04f29 (diff)
[8193] Use constant instead explicit value in title index checks. Author: XTZGZoReX
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 3f799b90352..729899ec69d 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20356,7 +20356,7 @@ bool Player::isTotalImmune()
bool Player::HasTitle(uint32 bitIndex)
{
- if (bitIndex > 192)
+ if (bitIndex > MAX_TITLE_INDEX)
return false;
uint32 fieldIndexOffset = bitIndex / 32;