From 5015975e4c3907fd7f2be18fada16b6d319d63d8 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 10 Feb 2015 00:24:36 -0800 Subject: [PATCH] GBA: Fix CodeBreaker codes --- src/gba/cheats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);