From 96db8961716f6545d91f7ffebd90d480ee784875 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 17:09:23 +0000 Subject: [PATCH] Decompile fn_12378 (UISelectCartWnd::SendMsg) Batch #18633 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_12378 UISelectCartWnd::SendMsg: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Acceptance/UIChooseSellBuyWnd.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index 29231cbcc..9658be5e5 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -9107,14 +9107,8 @@ int UISelectCartWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std case UM_COMMAND: if (a != ID_CLOSE) { const int type = static_cast(a) - 9000; - std::vector::iterator cart = this->cartTypes.begin(); - for (;; ++cart) { - if (cart == this->cartTypes.end()) { - return 0; - } - if (*cart == type) { - break; - } + if (std::find(this->cartTypes.begin(), this->cartTypes.end(), type) == this->cartTypes.end()) { + return 0; } g_modeMgr.GetGameMode()->SendMsg(MM_SELECT_CART, type, this->selectionContext, 0, 0); }