From 86355b708a2bf44fc96a77961b5d4d05fe9ad5b3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 01:47:43 +0000 Subject: [PATCH] Decompile fn_10371 (UIDisplayCharacter::SendMsg) Batch #17662 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_10371 UIDisplayCharacter::SendMsg: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/StylingShop/UIStylingShopWnd.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/UI/StylingShop/UIStylingShopWnd.cpp b/Source/UI/StylingShop/UIStylingShopWnd.cpp index 80e845eb9..cc4c03360 100644 --- a/Source/UI/StylingShop/UIStylingShopWnd.cpp +++ b/Source/UI/StylingShop/UIStylingShopWnd.cpp @@ -1097,7 +1097,7 @@ int UIDisplayCharacter::SendMsg(UIWindow* sender, int message, std::intptr_t arg switch (argument1) { case ID_LEFT: - this->direction = this->direction < 7 ? this->direction + 1 : 0; + this->direction = this->direction >= 7 ? 0 : this->direction + 1; break; case ID_RIGHT: if (this->direction <= 0) { @@ -1106,6 +1106,12 @@ int UIDisplayCharacter::SendMsg(UIWindow* sender, int message, std::intptr_t arg --this->direction; } break; + case 450: + this->SelectPreviousStyle(this->GetStyleTable(2).c_str(), &this->head); + break; + case 451: + this->SelectNextStyle(this->GetStyleTable(2).c_str(), &this->head); + break; case ID_PREVIEW: this->SelectPreviousStyle(this->GetStyleTable(3).c_str(), &this->bodyStyle); break; @@ -1115,12 +1121,6 @@ int UIDisplayCharacter::SendMsg(UIWindow* sender, int message, std::intptr_t arg case ID_NEXTVIEW: this->SelectNextStyle(this->GetStyleTable(3).c_str(), &this->bodyStyle); break; - case 450: - this->SelectPreviousStyle(this->GetStyleTable(2).c_str(), &this->head); - break; - case 451: - this->SelectNextStyle(this->GetStyleTable(2).c_str(), &this->head); - break; case 495: shop->SendMsg(nullptr, 495, 0, 0, 0, 0); break;