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:
parent
273cb19e1a
commit
96db896171
1 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue