Skip to content

Commit

Permalink
Fixed auto-initialization bug in TaskForce
Browse files Browse the repository at this point in the history
  • Loading branch information
birgersp committed Feb 13, 2017
1 parent 5cb45b3 commit f8a5d94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autogft/taskforce.lua
Expand Up @@ -41,7 +41,7 @@ function autogft_TaskForce:new()
local function autoInitialize()
self:autoInitialize()
end
autogft.scheduleFunction(autoInitialize, 1)
autogft.scheduleFunction(autoInitialize, 2)

return self
end
Expand Down Expand Up @@ -227,6 +227,7 @@ function autogft_TaskForce:reinforce(useSpawning)
local availableUnits
if not useSpawning then

availableUnits = {}
if not self.country then

availableUnits = autogft.getUnitsInZones(coalition.side.BLUE, self.baseZones)
Expand Down

0 comments on commit f8a5d94

Please sign in to comment.