From fedb803acb8769db458aee3876a5a934c077c298 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 30 Jul 2013 14:48:18 +0200 Subject: [PATCH] Fixed inverted sanity check in SetGameMode() Fixes #22. --- source/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Player.cpp b/source/Player.cpp index ac74f03b8..d59204e35 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -705,7 +705,7 @@ void cPlayer::SetLastBlockActionCnt( int a_LastBlockActionCnt ) 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); return;