From c712f7275de3814febbf085e3ee115f472c4a1d5 Mon Sep 17 00:00:00 2001 From: omar Date: Sat, 7 Apr 2018 10:25:51 +0200 Subject: [PATCH] Fixed unused variable warning. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 5b10471c1..a351aa5db 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3504,7 +3504,7 @@ void ImGui::NewFrame() NewFrameUpdateMovingWindow(); NewFrameUpdateHoveredWindowAndCaptureFlags(); - if (ImGuiWindow* modal_window = GetFrontMostModalRootWindow()) + if (GetFrontMostModalRootWindow() != NULL) g.ModalWindowDarkeningRatio = ImMin(g.ModalWindowDarkeningRatio + g.IO.DeltaTime * 6.0f, 1.0f); else g.ModalWindowDarkeningRatio = 0.0f;