From e3d10246b8ca28cefdfcf953c951886a53bc589b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 13:12:38 +0000 Subject: [PATCH] Decompile fn_16918 (RunWindowAction) Batch #16894 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_16918 RunWindowAction: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/UI/Window/UIWindow.cpp b/Source/UI/Window/UIWindow.cpp index c44b8b827..ace4d966a 100644 --- a/Source/UI/Window/UIWindow.cpp +++ b/Source/UI/Window/UIWindow.cpp @@ -187,7 +187,7 @@ bool RunWindowAction(bool primary, bool secondary, int value, int limit, std::fu return false; } - (primary && (!secondary || value <= limit) ? primaryAction : secondaryAction)(); + (primary ? (secondary && value > limit ? secondaryAction : primaryAction) : secondaryAction)(); return true; }