From 36993e16307c522a6ec2a133c1f5ca10b1200ea4 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 6 May 2024 17:32:29 +0200 Subject: [PATCH] make sure gOverlayFrame is valid --- src/function_patches.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/function_patches.cpp b/src/function_patches.cpp index c6ba97a..90c0066 100644 --- a/src/function_patches.cpp +++ b/src/function_patches.cpp @@ -72,6 +72,9 @@ void drawScreenshotSavedTexture2(GX2ColorBuffer *colorBuffer, GX2ScanTarget scan } static void TryAddFromQueue() { + if (!gOverlayFrame) { + return; + } std::lock_guard overlay_lock(gOverlayFrameMutex); // Add notification that had been called before the overlay was ready for (const auto ¬ification : gOverlayQueueDuringStartup) {