From 2d5ecd88db4c84f0fda741b8ef6872af9a871f5e Mon Sep 17 00:00:00 2001 From: skidau Date: Fri, 22 May 2015 05:52:50 +0000 Subject: [PATCH] Fixed another cheat limit check in the GB code. --- src/gb/gbCheats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gb/gbCheats.cpp b/src/gb/gbCheats.cpp index 8d140de2..8a45b189 100644 --- a/src/gb/gbCheats.cpp +++ b/src/gb/gbCheats.cpp @@ -197,7 +197,7 @@ bool gbVerifyGsCode(const char *code) bool gbAddGsCheat(const char *code, const char *desc) { - if(gbCheatNumber > 99) { + if(gbCheatNumber > (MAX_CHEATS - 1)) { systemMessage(MSG_MAXIMUM_NUMBER_OF_CHEATS, N_("Maximum number of cheats reached.")); return false; @@ -317,7 +317,7 @@ bool gbVerifyGgCode(const char *code) bool gbAddGgCheat(const char *code, const char *desc) { - if(gbCheatNumber > 99) { + if(gbCheatNumber > (MAX_CHEATS - 1)) { systemMessage(MSG_MAXIMUM_NUMBER_OF_CHEATS, N_("Maximum number of cheats reached.")); return false;