diff --git a/src/gb/cheats.c b/src/gb/cheats.c index 26df5104a..a29711c61 100644 --- a/src/gb/cheats.c +++ b/src/gb/cheats.c @@ -177,7 +177,7 @@ static bool GBCheatAddVBALine(struct GBCheatSet* cheats, const char* line) { uint16_t address; uint8_t value; const char* lineNext = hex16(line, &address); - if (!lineNext && lineNext[0] != ':') { + if (!lineNext || lineNext[0] != ':') { return false; } if (!hex8(line, &value)) {