[8193] Use constant instead explicit value in title index checks. Author: XTZGZoReX

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-07-23 09:34:42 +08:00
1 parent 2126ec3395
commit 4a0d187cd6
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -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;