From fc6ccb18971527f05b04a40669237969a19dd974 Mon Sep 17 00:00:00 2001 From: Steven Cherry Date: Sat, 24 Aug 2013 13:15:23 -0500 Subject: [PATCH] Fix --- UI/CwCheatScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }