win32: remove index from deleted cheats (fixes #288)

This commit is contained in:
OV2 2018-05-05 00:53:43 +02:00
parent c3e22144e1
commit 89b41da263
1 changed files with 1 additions and 0 deletions

View File

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