From 89b41da2631b36156956754f8339e2a208fe74f9 Mon Sep 17 00:00:00 2001 From: OV2 Date: Sat, 5 May 2018 00:53:43 +0200 Subject: [PATCH] win32: remove index from deleted cheats (fixes #288) --- win32/wsnes9x.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index eadc50ba..5abac8fc 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -8798,6 +8798,7 @@ INT_PTR CALLBACK DlgCheater(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) if (ct.index[j] == sel_idx) { ct.state[j] = Deleted; + ct.index[j] = -1; break; } }