Skip to content

Commit

Permalink
Core/handler: Fixed the operator. at first glance bracket hell..
Browse files Browse the repository at this point in the history
thanks LordJZ
  • Loading branch information
Bootz committed Feb 5, 2012
1 parent 7dd9581 commit 53c9ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Handlers/CharacterHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ void WorldSession::HandleRandomizeCharNameOpcode(WorldPacket& recv_data)
recv_data >> race;
recv_data >> gender;

if (!(1 << (race-1) & RACEMASK_ALL_PLAYABLE))
if (!((1 << (race-1)) &RACEMASK_ALL_PLAYABLE))
{
sLog->outError("Invalid race sent by accountId: %u", GetAccountId());
return;
Expand Down

0 comments on commit 53c9ae1

Please sign in to comment.