mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix CodeBreaker codes
This commit is contained in:
parent
31a9bafae8
commit
5015975e4c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue