win32: Populate cheat dialog in correct order.

This commit is contained in:
Brandon Wright 2018-06-07 15:23:23 -05:00
parent 5af624da32
commit 4b6130262e
1 changed files with 1 additions and 0 deletions

View File

@ -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;