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).
This commit is contained in:
ragnarok-clanker 2026-11-11 13:12:38 +00:00
commit e3d10246b8

View file

@ -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;
}