diff options
author | João Silva | 2017-08-26 00:26:09 +0100 |
---|---|---|
committer | João Silva | 2017-08-26 00:26:09 +0100 |
commit | 7becd31bfe9ba0cd77ed9dc034563e0ab513a8c9 (patch) | |
tree | 33e4229f9175a51e5fc309d05b5f83f3de19251f /source/cheats.c | |
parent | 3013ee57130a36b8bd4c314c659c100c3885cd80 (diff) | |
download | snes9x2005-7becd31bfe9ba0cd77ed9dc034563e0ab513a8c9.tar.gz snes9x2005-7becd31bfe9ba0cd77ed9dc034563e0ab513a8c9.tar.bz2 snes9x2005-7becd31bfe9ba0cd77ed9dc034563e0ab513a8c9.zip |
Still cleaning things up...
Diffstat (limited to 'source/cheats.c')
-rw-r--r-- | source/cheats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cheats.c b/source/cheats.c index 572fd55..0bedfd4 100644 --- a/source/cheats.c +++ b/source/cheats.c @@ -64,7 +64,7 @@ const char* S9xGameGenieToRaw(const char* code, uint32_t* address, uint8_t* byte uint32_t data = 0; int32_t i; - if (strlen(code) != 9 || *(code + 4) != '-' || !S9xAllHex(code, 4) || !S9xAllHex(code + 5, 4)) + if (strlen(code) != 9 || code[4] != '-' || !S9xAllHex(code, 4) || !S9xAllHex(code + 5, 4)) return "Invalid Game Genie(tm) code - should be 'xxxx-xxxx'."; strcpy(new_code, "0x"); |