Fixed another cheat limit check in the GB code.
This commit is contained in:
parent
fec1c7b770
commit
2d5ecd88db
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue