Skip to content

Commit

Permalink
Check for single string in OtherArmyUnitCountBuildConditions.lua (FAF…
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t authored Nov 2, 2022
1 parent 15fff85 commit 739cd7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/editor/OtherArmyUnitCountBuildConditions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ function BrainsCompareNumCategory(aiBrain, targetBrains, numReq, category, compa
local num = 0
local targetBrainSet = {}
local armySetup = ScenarioInfo.ArmySetup
if type(targetBrains) == "string" then
targetBrains = { targetBrains }
end
for _, brain in targetBrains do
if brain == 'HumanPlayers' then
local tblArmy = ListArmies()
Expand Down

0 comments on commit 739cd7f

Please sign in to comment.