1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

FACTO-125: Fixed recycling bases not clearing processBaseAIIterator

This commit is contained in:
Aaron Veden 2022-04-29 20:18:50 -07:00
parent bc8dd03b3c
commit 8430a98f43
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
Version: 3.0.3
Bugfixes:
- Fixed settling squads not detecting players on a chunk when deciding to settle early
- Fixed recycling bases not clearing processBaseAIs iterator
---------------------------------------------------------------------------------------------------
Version: 3.0.2

View File

@ -271,6 +271,9 @@ function baseUtils.recycleBases(universe)
local map = base.map
if (base.chunkCount == 0) or not map.surface.valid then
bases[id] = nil
if universe.processBaseAIIterator == id then
universe.processBaseAIIterator = nil
end
if map.surface.valid then
map.universe.bases[id] = nil
end