From 2ed239fdc3044e7080e9a5e55c0a61dc4b63aef3 Mon Sep 17 00:00:00 2001 From: SrGesus <108523575+SrGesus@users.noreply.github.com> Date: Wed, 23 Oct 2024 00:28:36 +0100 Subject: [PATCH] fix(engine): move ImGui::End call to outside of if body --- engine/src/tools/play_pause/plugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/src/tools/play_pause/plugin.cpp b/engine/src/tools/play_pause/plugin.cpp index ee2eebfd7..2b1d478a3 100644 --- a/engine/src/tools/play_pause/plugin.cpp +++ b/engine/src/tools/play_pause/plugin.cpp @@ -54,9 +54,8 @@ void cubos::engine::playPauseToolPlugin(Cubos& cubos) { state.scale = 1.0F; } - - ImGui::End(); } + ImGui::End(); if (!state.paused) {