From cc0c3c4e2636c433e17a8841fd1558c3c67a3e2d Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sun, 26 Apr 2009 11:31:33 +0000 Subject: [PATCH] cheats: small fix in AR loop code --- desmume/src/cheatSystem.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/desmume/src/cheatSystem.cpp b/desmume/src/cheatSystem.cpp index 7ff146f47..917525157 100644 --- a/desmume/src/cheatSystem.cpp +++ b/desmume/src/cheatSystem.cpp @@ -264,13 +264,12 @@ static void cheats_ARparser(CHEATS_LIST cheat) switch (subtype) { case 0x0: - loopcount++; - loopbackline = i; if (loopcount < (lo+1)) loop_flag = 1; else loop_flag = 0; - if (loopcount == 1) + loopcount++; + loopbackline = i; break; case 0x4: