Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
FIr3baL committed Aug 6, 2024
1 parent 757b270 commit 27aef27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/liblobby/lobby/interface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down

0 comments on commit 27aef27

Please sign in to comment.