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.
This commit is contained in:
ragnarok-clanker 2026-11-12 17:09:23 +00:00
commit 96db896171

View file

@ -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<int>(a) - 9000;
std::vector<int>::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);
}