Skip to content

Commit

Permalink
ensure match2players is always set
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Sep 12, 2024
1 parent a0e6636 commit e98e2bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/match2/commons/match_group_input_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ function MatchGroupInputUtil.mergeRecordWithOpponent(record, opponent, substitut
record.icondark = opponent.icondark or record.icondark
end

if not record.match2players and Logic.isNotEmpty(opponent.players) then
record.match2players = Array.map(opponent.players, function(player)
if not record.match2players then
record.match2players = Array.map(opponent.players or {}, function(player)
return {
displayname = player.displayName,
flag = player.flag,
Expand Down

0 comments on commit e98e2bf

Please sign in to comment.