Fixed inverted sanity check in SetGameMode()

Fixes #22.
master
madmaxoft 2013-07-30 14:48:18 +02:00
parent 9efcd5b82f
commit fedb803acb
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ void cPlayer::SetLastBlockActionCnt( int a_LastBlockActionCnt )
void cPlayer::SetGameMode(eGameMode a_GameMode) void cPlayer::SetGameMode(eGameMode a_GameMode)
{ {
if ((a_GameMode >= gmMin) || (a_GameMode < gmMax)) if ((a_GameMode < gmMin) || (a_GameMode >= gmMax))
{ {
LOGWARNING("%s: Setting invalid gamemode: %d", GetName().c_str(), a_GameMode); LOGWARNING("%s: Setting invalid gamemode: %d", GetName().c_str(), a_GameMode);
return; return;