diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index 5297c6c339..6daee8cbd8 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -111,7 +111,7 @@ UI::EventReturn CwCheatScreen::OnEnableAll(UI::EventParams ¶ms) } else if (enableAll == 0 && temp[j].substr(0, 3) == "_C1") { temp[j].replace(0, 3, "_C0"); - for (int x = 0; x < 64; x++) { + for (int x = 0; x < sizeof(enableCheat); x++) { enableCheat[x] = false; }