Skip to content

Commit

Permalink
init value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Dec 12, 2024
1 parent 8143485 commit 14fc6bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/match2/commons/match_group_input.lua
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,12 @@ function MatchGroupInput.applyOverrideArgs(matches, args)
end
end

---@param matches {match2opponents: table[]}[]
---@return integer
function MatchGroupInput.getMaxOpponentCount(matches)
return Array.reduce(matches, function(cur, match)
return math.max(#match.match2opponents, cur)
end)
end, 0)
end

---@param headerInput string?
Expand Down

0 comments on commit 14fc6bb

Please sign in to comment.