Merge pull request #2435 from lioncash/master

Add an extra null check to an if statement in CwCheat's function hleCheat.
This commit is contained in:
Henrik Rydgård 2013-06-24 04:47:57 -07:00
commit faa6cd86eb

View File

@ -58,11 +58,14 @@ 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 (!cheatEngine)
return;
if (g_Config.bReloadCheats) { //Checks if the "reload cheats" button has been pressed.
cheatEngine->CreateCodeList();
g_Config.bReloadCheats = false;
}
if (g_Config.bEnableCheats && cheatEngine) {
if (g_Config.bEnableCheats) {
cheatEngine->Run();
}
}