From bd16ed1340128b0f93c314427f9796489684a182 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sun, 2 Apr 2023 21:48:52 +0200 Subject: [PATCH] iR5900: Fix scope of variable warning. Codacy. --- pcsx2/x86/ix86-32/iR5900-32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcsx2/x86/ix86-32/iR5900-32.cpp b/pcsx2/x86/ix86-32/iR5900-32.cpp index 5ebd9a6a9c..1869a45264 100644 --- a/pcsx2/x86/ix86-32/iR5900-32.cpp +++ b/pcsx2/x86/ix86-32/iR5900-32.cpp @@ -1912,11 +1912,10 @@ void recompileNextInstruction(bool delayslot, bool swapped_delay_slot) else if (COP2IsQOP(cpuRegs.code)) { - std::string disasm; Console.Warning("Possible incorrect Q value used in COP2. If the game is broken, please report to http://github.com/pcsx2/pcsx2."); for (u32 i = s_pCurBlockEx->startpc; i < s_nEndBlock; i += 4) { - disasm = ""; + std::string disasm = ""; disR5900Fasm(disasm, memRead32(i), i, false); Console.Warning("%x %s%08X %s", i, i == pc - 4 ? "*" : i == p ? "=" : " ",