GBA: Fix CodeBreaker codes

This commit is contained in:
Jeffrey Pfau 2015-02-10 00:24:36 -08:00
parent 31a9bafae8
commit 5015975e4c
1 changed files with 1 additions and 1 deletions

View File

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