We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e80d330 + 85d92f1 commit 412ae1aCopy full SHA for 412ae1a
autotraining.lua
@@ -139,9 +139,9 @@ end
139
140
function getTrainingSquads()
141
local squads = {}
142
- for squad_id, _ in pairs(state.training_squads) do
+ for squad_id, active in pairs(state.training_squads) do
143
local squad = df.squad.find(squad_id)
144
- if squad then
+ if active and squad then
145
table.insert(squads, squad)
146
else
147
-- setting to nil during iteration is permitted by lua
changelog.txt
@@ -33,6 +33,7 @@ Template for new versions:
33
## New Features
34
35
## Fixes
36
+- `autotraining`: squads once used for training then disabled now properly are treated as disabled.
37
38
## Misc Improvements
39
0 commit comments