From 3e669ca00ba2dbbce79bca7da50cd1d07fffc911 Mon Sep 17 00:00:00 2001 From: Rikard Blixt Date: Wed, 18 Dec 2024 14:28:55 +0100 Subject: [PATCH] add brackets --- components/match2/commons/match_group_input_util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/match2/commons/match_group_input_util.lua b/components/match2/commons/match_group_input_util.lua index eec2ff534d..fd086e3a10 100644 --- a/components/match2/commons/match_group_input_util.lua +++ b/components/match2/commons/match_group_input_util.lua @@ -843,7 +843,7 @@ function MatchGroupInputUtil.matchIsFinished(match, maps, opponents) local longLiveTime = record.dateexact and ASSUME_FINISHED_AFTER.EXACT or ASSUME_FINISHED_AFTER.ESTIMATE return NOW > (record.timestamp + longLiveTime) end - if #maps > 0 and Array.all(maps, recordLiveLongEnough) or #maps == 0 and recordLiveLongEnough(match) then + if (#maps > 0 and Array.all(maps, recordLiveLongEnough)) or (#maps == 0 and recordLiveLongEnough(match)) then return true end