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

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

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;