From 27aef271fccc244063a0c6a9cf6609771e8bd0c4 Mon Sep 17 00:00:00 2001 From: Fireball <32598847+FIr3baL@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:45:35 +0200 Subject: [PATCH] cosmetics --- libs/liblobby/lobby/interface.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/liblobby/lobby/interface.lua b/libs/liblobby/lobby/interface.lua index a14c867eb..b6cef48ea 100644 --- a/libs/liblobby/lobby/interface.lua +++ b/libs/liblobby/lobby/interface.lua @@ -502,7 +502,7 @@ function Interface:SetModOptions(data) end function Interface:AddAi(aiName, aiLib, allyNumber, version, aiOptions, battleStatusOptions) - local battleStatus = { + local userData = { isReady = true, teamNumber = self:GetUnusedTeamID(), allyNumber = allyNumber, @@ -511,7 +511,7 @@ function Interface:AddAi(aiName, aiLib, allyNumber, version, aiOptions, battleSt side = 0, } - battleStatus, updated = UpdateAndCreateMerge(battleStatus, battleStatusOptions or {}) + local battleStatus, updated = UpdateAndCreateMerge(userData, battleStatusOptions or {}) aiName = aiName:gsub(" ", "") local battleStatusString = EncodeBattleStatus(battleStatus)