From 870c45edd71507808f29ff8bf18edb8a156739a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 13 Aug 2023 23:50:30 +0200 Subject: [PATCH] Fix flipped check for debug overlays --- UI/DebugOverlay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/DebugOverlay.cpp b/UI/DebugOverlay.cpp index 4ccdb89998..eb3088325c 100644 --- a/UI/DebugOverlay.cpp +++ b/UI/DebugOverlay.cpp @@ -169,11 +169,11 @@ void DrawDebugOverlay(UIContext *ctx, const Bounds &bounds, DebugOverlay overlay switch (overlay) { case DebugOverlay::DEBUG_STATS: - if (!inGame) + if (inGame) DrawDebugStats(ctx, ctx->GetLayoutBounds()); break; case DebugOverlay::FRAME_GRAPH: - if (!inGame) + if (inGame) DrawFrameTimes(ctx, ctx->GetLayoutBounds()); break; case DebugOverlay::FRAME_TIMING: