diff --git a/Source/Core/Common/BreakPoints.cpp b/Source/Core/Common/BreakPoints.cpp index bb07722a9d..d69f561432 100644 --- a/Source/Core/Common/BreakPoints.cpp +++ b/Source/Core/Common/BreakPoints.cpp @@ -170,7 +170,7 @@ void MemChecks::Add(const TMemCheck& _rMemoryCheck) m_MemChecks.push_back(_rMemoryCheck); // If this is the first one, clear the JIT cache so it can switch to // watchpoint-compatible code. - if (!had_any) + if (!had_any && jit) jit->ClearCache(); } @@ -184,7 +184,7 @@ void MemChecks::Remove(u32 _Address) return; } } - if (!HasAny()) + if (!HasAny() && jit) jit->ClearCache(); }