From 805ded3f6bb8d2f8515d2c01149802fceefc0fca Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 12:03:54 +0000 Subject: [PATCH] Decompile fn_17176 (UIWindowMgr::LoadShortcutItems) Batch #13227 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_17176 UIWindowMgr::LoadShortcutItems: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Window/WindowMgrState.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Window/WindowMgrState.cpp b/Source/UI/Window/WindowMgrState.cpp index 930697aa..dbe372ab 100644 --- a/Source/UI/Window/WindowMgrState.cpp +++ b/Source/UI/Window/WindowMgrState.cpp @@ -165,13 +165,13 @@ void UIWindowMgr::LoadShortcutItems() { std::sprintf(name, "SITEM%d%d%d", index, g_serviceType, g_session.unknown_0F50); char description[33] = {}; LSTATUS result = RegQueryValueExA(key, name, nullptr, &type, reinterpret_cast(description), &size); - bool hasSkillLevel = false; + int hasSkillLevel = 0; g_session.m_hotkeyPage = static_cast(index / 9); if (result == ERROR_SUCCESS) { - if (description[0] == '#') { - hasSkillLevel = true; - } else { + if (description[0] != '#') { g_session.SetHotkeyDescription(description, index); + } else { + hasSkillLevel = 1; } } else { g_session.SetHotkeyDescription("nothing", index);