From 9fbfffd97864207c1f9ac7b724315f0ac8976bd5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 12:58:05 +0000 Subject: [PATCH] Decompile fn_09205 (UIAchListWnd::SelectAchievement) Batch #18315 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_09205 UIAchListWnd::SelectAchievement: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Achievement/UIAchWnd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Achievement/UIAchWnd.cpp b/Source/UI/Achievement/UIAchWnd.cpp index 06b1d393b..d411aa8ad 100644 --- a/Source/UI/Achievement/UIAchWnd.cpp +++ b/Source/UI/Achievement/UIAchWnd.cpp @@ -69,11 +69,11 @@ void UIAchListWnd::SelectAchievement(int index) { this->selectedIndex = index; if (this->parent) { - int id = -1; - if (static_cast(index) < this->ids.size()) { - id = this->ids[index]; + if (this->ids.size() > static_cast(index)) { + this->parent->SendMsg(this, UM_LIST_SELECTION, this->ids[index], 0, 0, 0); + } else { + this->parent->SendMsg(this, UM_LIST_SELECTION, -1, 0, 0, 0); } - this->parent->SendMsg(this, UM_LIST_SELECTION, id, 0, 0, 0); } this->Invalidate();