Decompile fn_12711 (UIShortCutWnd::OnMouseHover)

Batch #15528 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_12711 UIShortCutWnd::OnMouseHover: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, eAthena
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-10 09:48:52 +00:00
commit aceeb996ab

View file

@ -2,6 +2,7 @@
#include "Contents/Hotkeys/HotkeyInfo.h"
#include "Contents/MessageTable.h"
#include "Contents/Skills/ClientSkills.h"
#include "Contents/Skills/PlayerSkillBundle.h"
#include "UI/Shortcuts/UIShortCutWnd.h"
#include "UI/Buttons/UIButton.h"
#include "UI/Window/UIWindow.h"
@ -79,7 +80,7 @@ void UIShortCutWnd::OnMouseHover(int x, int y) {
text = shortcut;
} else {
int level = slot.value;
if ((skill.id == 6579 || skill.id == 6580) && skill.level < level) {
if (IsIndexedSkill(static_cast<int>(skill.id)) && skill.level < level) {
level = skill.level;
}