From 0c1976b0ef4a4c99b6d950a8e79b0a9a8bd18212 Mon Sep 17 00:00:00 2001 From: OV2 Date: Tue, 8 May 2018 18:34:28 +0200 Subject: [PATCH] win32: correctly delete cheats (fixes #290) --- win32/wsnes9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 3e067a33..b70f15f1 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -8982,7 +8982,7 @@ INT_PTR CALLBACK DlgCheater(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) } } - for(int l = 0; l < ct.state.size(); l++ ) + for(int l = ct.state.size() - 1; l >= 0; l-- ) { if(ct.state[l]==Deleted) {