From 73288e808a0eef02d984e40801951da0d5e6d2e2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 3 Nov 2026 21:34:01 +0000 Subject: [PATCH] Maintenance: Fold alias global gl_25087 g_barterValueA (0x1733d34) into its evidenced owner member g_session.m_maxWeight. 0x1733D34 = Batch #10389 by ragnarok-clanker: no function's compiled code changes; checked with 1 compiled unit(s). --- Source/UI/UIBartermarketWnd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/UI/UIBartermarketWnd.cpp b/Source/UI/UIBartermarketWnd.cpp index d72b8d67..ad759f30 100644 --- a/Source/UI/UIBartermarketWnd.cpp +++ b/Source/UI/UIBartermarketWnd.cpp @@ -1136,8 +1136,6 @@ void UIExpandedBarterPurchaseButton::Slot28(int x, int y) { // GLOBAL: gl_25056 int g_extraInventorySlots; -// GLOBAL: gl_25087 -int g_barterValueA; // GLOBAL: gl_25088 int g_barterValueB; @@ -1379,7 +1377,7 @@ int UIBarterItemPurchaseWnd::SendMsg(UIWindow* sender, int message, std::intptr_ } if (amountById > 0) { - const int available = g_barterValueA - g_barterValueB; + const int available = g_session.m_maxWeight - g_barterValueB; const float remaining = static_cast(available) - g_barterMarketItemMgr->GetTotalAmount(); if (static_cast(remaining) / amountById < mode->drag.quantity) { g_windowMgr.SendNotice(1, reinterpret_cast(LookupMessage(56)), 255, 0, 0, 0);