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

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
XTZGZoReX 2009-07-17 19:25:26 +04:00 committed by VladimirMangos
parent 3e2477945d
commit 4f53c4ee28
4 changed files with 5 additions and 3 deletions

View file

@ -19504,7 +19504,7 @@ bool Player::isTotalImmune()
bool Player::HasTitle(uint32 bitIndex)
{
if (bitIndex > 192)
if (bitIndex > MAX_TITLE_INDEX)
return false;
uint32 fieldIndexOffset = bitIndex / 32;