diff options
author | Nay <dnpd.dd@gmail.com> | 2011-12-18 15:42:07 +0000 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2011-12-18 15:42:07 +0000 |
commit | 8a000de1ca8e675b88f3b3a70bbcee3b4be120f1 (patch) | |
tree | 2ae3657eadce4f44923917e43fe32e576183ca32 /src | |
parent | 5fea1ae13cafedc46dc93b7247efc74c80092d31 (diff) |
Core/Misc: Fix two warnings
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Player/Player.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Player/Player.h b/src/server/game/Entities/Player/Player.h index e52f1cc1ee4..7eca06f750c 100755 --- a/src/server/game/Entities/Player/Player.h +++ b/src/server/game/Entities/Player/Player.h @@ -1536,8 +1536,8 @@ class Player : public Unit, public GridObject<Player> static bool LoadPositionFromDB(uint32& mapid, float& x, float& y, float& z, float& o, bool& in_flight, uint64 guid); static bool IsValidGender(uint8 Gender) { return Gender <= GENDER_FEMALE ; } - static bool IsValidClass(uint8 Class) { return (1 << Class - 1) & CLASSMASK_ALL_PLAYABLE; } - static bool IsValidRace(uint8 Race) { return (1 << Race - 1) & RACEMASK_ALL_PLAYABLE; } + static bool IsValidClass(uint8 Class) { return (1 << (Class - 1)) & CLASSMASK_ALL_PLAYABLE; } + static bool IsValidRace(uint8 Race) { return (1 << (Race - 1)) & RACEMASK_ALL_PLAYABLE; } /*********************************************************/ /*** SAVE SYSTEM ***/ |