diff --git a/src/gba/cheats.c b/src/gba/cheats.c index 311fece6c..7d16df790 100644 --- a/src/gba/cheats.c +++ b/src/gba/cheats.c @@ -670,7 +670,7 @@ bool GBACheatAddLine(struct GBACheatSet* cheats, const char* line) { if (!line) { return false; } - if (isspace(line[0])) { + if (!line[0] || isspace(line[0])) { return GBACheatAddCodeBreaker(cheats, op1, op2); } line = _hex16(line, &op3);