From 0c93baa1df3ee9d0af3b7017a8cb62775bbfdcab Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 31 Aug 2013 23:09:57 -0700 Subject: [PATCH] Prevent a crash in debugger without jit. --- Windows/Debugger/CtrlDisAsmView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Windows/Debugger/CtrlDisAsmView.cpp b/Windows/Debugger/CtrlDisAsmView.cpp index 9b974788a9..e6a8db36ac 100644 --- a/Windows/Debugger/CtrlDisAsmView.cpp +++ b/Windows/Debugger/CtrlDisAsmView.cpp @@ -309,7 +309,8 @@ void CtrlDisAsmView::assembleOpcode(u32 address, std::string defaultText) if (result == true) { Memory::Write_U32(encoded,address); - MIPSComp::jit->ClearCacheAt(address); + if (MIPSComp::jit) + MIPSComp::jit->ClearCacheAt(address); redraw(); } else { MessageBox(wnd,L"Couldn't assemble.",L"Error",MB_OK);