From 1922e2ffa7e81eddf1e1cdf09e9158d54c64031b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 22:06:17 +0000 Subject: [PATCH] Decompile fn_16196 (CUIProbabilityTable::Search) Batch #17347 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_16196 CUIProbabilityTable::Search: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/ProbabilityTable/UIProbabilityTable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/UI/ProbabilityTable/UIProbabilityTable.cpp b/Source/UI/ProbabilityTable/UIProbabilityTable.cpp index 131540639..b0290af7f 100644 --- a/Source/UI/ProbabilityTable/UIProbabilityTable.cpp +++ b/Source/UI/ProbabilityTable/UIProbabilityTable.cpp @@ -478,9 +478,7 @@ void CUIProbabilityTable::Search() { found = std::find_if(list->data.begin(), list->data.end(), matches); } - if (found == list->data.end()) { - g_windowMgr.Confirm(LookupMessage(MSI_REFINING_BLACKSMITH_BLESSING_MSG3), 0, true, false, 0, "Message", 280, 120, 0); - } else { + if (found != list->data.end()) { HighlightKeyword(found->name, keyword, g_probabilityHighlightBegin, g_probabilityHighlightEnd); CUIListBoxEx* current = this->m_list; @@ -493,6 +491,8 @@ void CUIProbabilityTable::Search() { } } this->m_list->RebindIndex(this->m_list->selected); + } else { + g_windowMgr.Confirm(LookupMessage(MSI_REFINING_BLACKSMITH_BLESSING_MSG3), 0, true, false, 0, "Message", 280, 120, 0); } this->m_lastSearch = keyword;