From d6872769aee21d3edfaacffed95f59e363a0c457 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 29 May 2017 10:05:22 -0500 Subject: [PATCH] cheats: fix bug in EXXXXXXX code eating one too many code lines --- desmume/src/cheatSystem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/cheatSystem.cpp b/desmume/src/cheatSystem.cpp index b19fb6d24..a882faa10 100644 --- a/desmume/src/cheatSystem.cpp +++ b/desmume/src/cheatSystem.cpp @@ -557,6 +557,10 @@ void CHEATS::ARparser(CHEATS_LIST& list) y -= 1; b += 4; } + + //the main loop will increment to the next cheat, but the loop above may have gone one too far + if(t==0) + i--; } break;