Decompile 2 functions in Source/UI/UIBartermarketWnd.cpp

Batch #14012 by Yommy: 0 byte-identical, 2 confirmed by peer review.

- fn_10558 UIBarterItemPurchaseWnd::Slot28: logic confirmed by peer review
- fn_10559 UIBartermarketWnd::Slot28: logic confirmed by peer review

Peer-reviewed-by: secret, KWDev, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 07:21:08 +00:00
commit 6fc5c18d0a

View file

@ -961,7 +961,7 @@ void UIBarterItemPurchaseWnd::Slot28(int x, int y) {
std::string text;
BarterMarketItem item = found.second;
ITEM_DESC description = FindItemDescription(item.field_2c);
text = FormatOwnedString(LookupMessage(3553), description.identifiedName, item.field_28 * item.value);
text = static_cast<const std::string&>(FormatOwnedString(LookupMessage(3553), description.identifiedName, item.field_28 * item.value));
CMode* tooltip = g_modeMgr.gameMode;
ITEM_INFO info = item.ToItemInfo();
if (tooltip) {
@ -980,7 +980,7 @@ void UIBartermarketWnd::Slot28(int x, int y) {
this->ToScreen(tooltipX, tooltipY);
std::string text;
ITEM_DESC description = FindItemDescription(found.second.field_2c);
text = FormatOwnedString(LookupMessage(3553), description.identifiedName, found.second.field_28);
text = static_cast<const std::string&>(FormatOwnedString(LookupMessage(3553), description.identifiedName, found.second.field_28));
CMode* tooltip = g_modeMgr.gameMode;
ITEM_INFO info = found.second.ToItemInfo();
if (tooltip) {