diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 7f3b7f9c..f8317e41 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -8724,6 +8724,7 @@ INT_PTR CALLBACK DlgCheater(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) lvi.cchTextMax = CHEAT_SIZE; lvi.pszText = wstring; lvi.lParam = counter; // we save the internal cheat index as lParam of list entry + lvi.iItem = counter; curr_idx = ListView_InsertItem(GetDlgItem(hDlg,IDC_CHEAT_LIST), &lvi); ct.state[counter] = Untouched;