From af8731f2d28c0cb8f5d740c32a945d4fc437dec5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 9 Aug 2019 07:07:59 -0400 Subject: [PATCH] GuiSys/CInstruction: Correct erroneous assignment in TestLargestFont Without this, x20_largestMonoW will never be any value other than zero, which is indicative of a logic bug. --- Runtime/GuiSys/CInstruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/GuiSys/CInstruction.cpp b/Runtime/GuiSys/CInstruction.cpp index 3dab285a8..bf64407f2 100644 --- a/Runtime/GuiSys/CInstruction.cpp +++ b/Runtime/GuiSys/CInstruction.cpp @@ -225,7 +225,7 @@ void CBlockInstruction::TestLargestFont(s32 monoW, s32 monoH, s32 baseline) { x28_largestBaseline = baseline; if (x20_largestMonoW < monoW) - monoW = x20_largestMonoW; + x20_largestMonoW = monoW; if (x24_largestMonoH < monoH) { x24_largestMonoH = monoH;