From 5dfee69bc71cfe2795d39c03d48e8c482dcf92ae Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 11:30:03 +0000 Subject: [PATCH] Decompile 3 functions in Source/UI/Shop/UIBartermarketWnd.cpp Batch #18098 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_10578 UIExpandedBarterItemPurchaseWnd::GetEntryAt: logic confirmed by peer review - fn_10579 UIExpandedBartermarketWnd::GetEntryAt: logic confirmed by peer review - fn_10581 UIExpandedBartermarketWnd::GetEntryOrChunkAt: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, KWDev, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Shop/UIBartermarketWnd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Shop/UIBartermarketWnd.cpp b/Source/UI/Shop/UIBartermarketWnd.cpp index dae2d65e1..0c9c43667 100644 --- a/Source/UI/Shop/UIBartermarketWnd.cpp +++ b/Source/UI/Shop/UIBartermarketWnd.cpp @@ -278,7 +278,7 @@ std::pair UIExpandedBarterItemPurchaseWnd::GetEntryAt(i for (std::list::iterator it = this->entries.begin(); it != this->entries.end(); ++it, ++index) { if (index >= this->firstRow) { if (visible == row) { - return std::make_pair(true, *it); + return std::pair(true, *it); } ++visible; } @@ -298,7 +298,7 @@ std::pair UIExpandedBartermarketWnd::GetEntryAt(int x, for (std::list::iterator it = this->entries.begin(); it != this->entries.end(); ++it, ++index) { if (index >= this->firstRow) { if (visible == (y - 17) / 64) { - return std::make_pair(true, *it); + return std::pair(true, *it); } ++visible; } @@ -368,14 +368,14 @@ std::pair UIExpandedBartermarketWnd::GetEntryOrChunkAt( char buffer[16] = {}; entry.name = _itoa(chunk->field_0, buffer, 10); entry.field_0 = chunk->field_c; - return std::make_pair(true, entry); + return std::pair(true, entry); } right += 42; } } if (x > 40 && x < 72) { entry = *it; - return std::make_pair(true, entry); + return std::pair(true, entry); } } ++visible;