From dcc5e3bf7e97ee31c00a6eeae1498b02ca8d61d5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 20:36:51 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/UILapineUpgradeBoxWnd.cpp Batch #11165 by dori: 0 byte-identical, 2 confirmed by peer review. - fn_04194 UILapineUpgradeBoxWnd::Slot10: logic confirmed by peer review - fn_04209 UILapineUpgradeBox_IngredientInfoWnd::Slot28: logic confirmed by peer review Peer-reviewed-by: kyoshi, cremane, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/UILapineUpgradeBoxWnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/UI/UILapineUpgradeBoxWnd.cpp b/Source/UI/UILapineUpgradeBoxWnd.cpp index e55f05f3..fa20d747 100644 --- a/Source/UI/UILapineUpgradeBoxWnd.cpp +++ b/Source/UI/UILapineUpgradeBoxWnd.cpp @@ -171,7 +171,7 @@ void UILapineUpgradeBoxWnd::Paint() { // OFFSET: 0x006035E0 // FUNCTION: fn_04194 void UILapineUpgradeBoxWnd::Slot10(int x, int y, std::intptr_t value) { - CMode* mode = static_cast(g_charViewMode); + CMode* mode = g_modeMgr.GetGameMode(); if (this->item.unknown_0000[1] > 0) { mode->SendMsg(18, 0, 0, 0, 0); return; @@ -460,7 +460,7 @@ void UILapineUpgradeBox_IngredientInfoWnd::Slot28(int x, int y) { int tipX = 0; int tipY = -20; this->ToScreen(tipX, tipY); - static_cast(g_charViewMode)->ShowTooltip(this->tooltip.c_str(), tipX, tipY, -1, false, true); + g_modeMgr.gameMode->ShowTooltip(this->tooltip.c_str(), tipX, tipY, -1, false, true); } }