From 987fdd32fb2a1b022ecec581786e686e3a86604e Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Thu, 5 Jan 2023 11:47:03 +0100 Subject: [PATCH] Frontend-imgui: Fix scope of the variable can be reduced warning. Codacy. --- pcsx2/Frontend/ImGuiOverlays.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/Frontend/ImGuiOverlays.cpp b/pcsx2/Frontend/ImGuiOverlays.cpp index a2c7a3f39c..43b87114cc 100644 --- a/pcsx2/Frontend/ImGuiOverlays.cpp +++ b/pcsx2/Frontend/ImGuiOverlays.cpp @@ -112,7 +112,6 @@ void ImGuiManager::DrawPerformanceOverlay() ImDrawList* dl = ImGui::GetBackgroundDrawList(); std::string text; ImVec2 text_size; - bool first = true; text.reserve(128); @@ -132,6 +131,7 @@ void ImGuiManager::DrawPerformanceOverlay() if (!paused) { + bool first = true; const float speed = PerformanceMetrics::GetSpeed(); if (GSConfig.OsdShowFPS) {