From 262aefe99fa7021935e0fefdf4c1466acfde2960 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 07:32:14 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Edit/UIEditCtrl.cpp Batch #18028 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_13264 UIMerchantShopMakeWnd::PrintBuyList: byte-identical - fn_13265 UIMerchantShopMakeWnd::PrintSellList: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Edit/UIEditCtrl.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/UI/Edit/UIEditCtrl.cpp b/Source/UI/Edit/UIEditCtrl.cpp index 24eebc9dc..cea14c597 100644 --- a/Source/UI/Edit/UIEditCtrl.cpp +++ b/Source/UI/Edit/UIEditCtrl.cpp @@ -4067,7 +4067,8 @@ void UIMerchantShopMakeWnd::PrintBuyList() { if (std::atoi(text) > 99990000) { std::sprintf(price, "99,990,000"); } else { - std::sprintf(price, "%s", FormatGroupedInteger(std::atoi(text), grouped, 32)); + const int value = std::atoi(text); + std::sprintf(price, "%s", FormatGroupedInteger(value, grouped, 32)); } const double rate = PriceCommission(_atoi64(text)) * 0.01; @@ -4078,7 +4079,8 @@ void UIMerchantShopMakeWnd::PrintBuyList() { if (std::atoi(text) > 9999) { std::sprintf(quantity, "9,999"); } else { - std::sprintf(quantity, "%s", FormatGroupedInteger(std::atoi(text), grouped, 32)); + const int value = std::atoi(text); + std::sprintf(quantity, "%s", FormatGroupedInteger(value, grouped, 32)); } std::sprintf(line, LookupMessage(MSI_BUYINGSTORE_MAKEWND_ITEMLIST), name, price, quantity); @@ -10559,7 +10561,8 @@ void UIMerchantShopMakeWnd::PrintSellList() { if (std::atoi(text) > 1000000000) { std::sprintf(price, "1,000,000,000"); } else { - std::sprintf(price, "%s", FormatGroupedInteger(std::atoi(text), grouped, 32)); + const int value = std::atoi(text); + std::sprintf(price, "%s", FormatGroupedInteger(value, grouped, 32)); } std::sprintf(line, " %s : %s Zeny", name, price);