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.
This commit is contained in:
Lioncash 2013-06-24 04:09:26 -04:00
parent ee164a3977
commit d06bb0c755

View File

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