win32: correctly delete cheats (fixes #290)

This commit is contained in:
OV2 2018-05-08 18:34:28 +02:00
parent fdae8cc72f
commit 0c1976b0ef
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{