From d06bb0c755507da44a16295206ee2fd60061a161 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 24 Jun 2013 04:09:26 -0400 Subject: [PATCH] Add a check to an if-statement in CwCheat.cpp in function hleCheat. Check if cheatEngine isn't null. Considering how the if-statement below it has this check, it should be placed in this one as well. --- Core/CwCheat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index ebc302f72..c61656825 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -58,7 +58,7 @@ void __CheatShutdown() { void hleCheat(u64 userdata, int cyclesLate) { CoreTiming::ScheduleEvent(msToCycles(77), CheatEvent, 0); - if (g_Config.bReloadCheats == true) { //Checks if the "reload cheats" button has been pressed. + if (g_Config.bReloadCheats == true && cheatEngine) { //Checks if the "reload cheats" button has been pressed. cheatEngine->CreateCodeList(); g_Config.bReloadCheats = false; }