From a588b463218efc4c2f75b2189299aa2f836960e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 23 Oct 2013 17:23:05 +0200 Subject: [PATCH] Clear the JIT cache correctly when exiting the cheat dialog. --- UI/CwCheatScreen.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index ea821d0c3..563dcc841 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -103,8 +103,7 @@ UI::EventReturn CwCheatScreen::OnBack(UI::EventParams ¶ms) { os.close(); g_Config.bReloadCheats = true; if (MIPSComp::jit) { - auto blocks = MIPSComp::jit->GetBlockCache(); - blocks->Clear(); + MIPSComp::jit->ClearCache(); } return UI::EVENT_DONE; }