Fixed another cheat limit check in the GB code.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1471 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
skidau 2015-05-22 05:52:50 +00:00
parent f714e5f2c4
commit 806194fc3b
1 changed files with 2 additions and 2 deletions

View File

@ -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;