From 8b76177ab836a65e7de3360fb92a364e7ea2e785 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 15:31:19 +0000 Subject: [PATCH] Decompile fn_12583 (UIHotKeyWnd::AssignSelectedHotkey) Batch #12455 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_12583 UIHotKeyWnd::AssignSelectedHotkey: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIHotKeyWnd.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/UI/Window/UIHotKeyWnd.cpp b/Source/UI/Window/UIHotKeyWnd.cpp index 9b3f75cb..0a68e3d3 100644 --- a/Source/UI/Window/UIHotKeyWnd.cpp +++ b/Source/UI/Window/UIHotKeyWnd.cpp @@ -578,14 +578,14 @@ bool UIHotKeyWnd::AssignSelectedHotkey(int mode) { mode = this->CheckHotkeyConflict(); } - if (mode == 1) { - return false; - } - - if (mode == 2) { - rejection = 0x5CF; - } else if (mode == 3) { - rejection = 0x5D0; + switch (mode) { + case 1: + return false; + case 2: + rejection = 0x5CF; + break; + case 3: + rejection = 0x5D0; } }