From 772d11674ea62b43e571c83a030f92dafce4d588 Mon Sep 17 00:00:00 2001 From: mbergen Date: Wed, 23 Oct 2024 11:29:43 +0200 Subject: [PATCH] fix(match2): Wrong index on match2players in CR Legacy (#4951) --- components/match2/wikis/clashroyale/match_legacy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/match2/wikis/clashroyale/match_legacy.lua b/components/match2/wikis/clashroyale/match_legacy.lua index b2d89ea31c6..526e4fa7e5d 100644 --- a/components/match2/wikis/clashroyale/match_legacy.lua +++ b/components/match2/wikis/clashroyale/match_legacy.lua @@ -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