From 86ea624ab972c86f1b36d172392f946a5c78d7f7 Mon Sep 17 00:00:00 2001 From: jbo_85 <> Date: Sun, 16 Oct 2005 11:45:33 +0000 Subject: [PATCH] Fixed cosmetic bug in cheat window when removing cheats (bug #15). --- zsnes/src/gui/guicheat.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zsnes/src/gui/guicheat.inc b/zsnes/src/gui/guicheat.inc index a339465d..e7ea2891 100644 --- a/zsnes/src/gui/guicheat.inc +++ b/zsnes/src/gui/guicheat.inc @@ -486,7 +486,14 @@ CheatCodeRemove: je .okay cmp eax,[NumCheats] jne .okay - dec dword[GUIcurrentcheatcursloc] + dec eax + mov [GUIcurrentcheatcursloc],eax + sub eax,11 + mov [GUIcurrentcheatviewloc],eax + test dword[GUIcurrentcheatviewloc],80000000h + jz .noview + mov dword[GUIcurrentcheatviewloc],0 +.noview .okay cmp byte[NumCheats],0 jne .cheatexists