From 03700db74084e361728f236387ed5a6d6929c3d4 Mon Sep 17 00:00:00 2001 From: zilmar Date: Sun, 10 Feb 2019 09:14:51 +1030 Subject: [PATCH] [Project64] Add checks around g_Debugger->FrameDrawn --- Source/Project64-core/N64System/N64Class.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/N64Class.cpp b/Source/Project64-core/N64System/N64Class.cpp index b063599ac..eaa4266a4 100644 --- a/Source/Project64-core/N64System/N64Class.cpp +++ b/Source/Project64-core/N64System/N64Class.cpp @@ -2217,7 +2217,10 @@ void CN64System::RefreshScreen() { WriteTrace(TraceGFXPlugin, TraceDebug, "UpdateScreen Starting"); g_Plugins->Gfx()->UpdateScreen(); - g_Debugger->FrameDrawn(); + if (g_Debugger != NULL && HaveDebugger()) + { + g_Debugger->FrameDrawn(); + } WriteTrace(TraceGFXPlugin, TraceDebug, "UpdateScreen Done"); } __except_catch()