mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
[8193] Use constant instead explicit value in title index checks. Author: XTZGZoReX
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user