Skip to content

Commit

Permalink
fix(match2): Wrong index on match2players in CR Legacy (#4951)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbergen authored Oct 23, 2024
1 parent e1e85d8 commit 772d116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/match2/wikis/clashroyale/match_legacy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function MatchLegacy.store(match2)
if opponent1.type == Opponent.solo then
local function handlePlayer(index)
local opponent = match2.match2opponents[index] or {}
local player = opponent.match2players or {}
local player = opponent.match2players[1] or {}
local prefix = 'opponent' .. index

match[prefix] = player.name and player.name:gsub('_', ' ') or nil
Expand Down

0 comments on commit 772d116

Please sign in to comment.