1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-06 00:23:49 +02:00

wave defense - minor issue fix

This commit is contained in:
Gerkiz 2022-02-28 22:16:16 +01:00
parent 8194dccf56
commit 8cae376904

View File

@ -1048,7 +1048,7 @@ local function check_group_positions()
fill_tiles(group, 30)
remove_rocks(group)
remove_trees(group)
if ugp[group.group_number].index >= 4 then
if valid(group) and ugp[group.group_number].index >= 4 then
generated_units.unit_group_pos.positions[group.group_number] = nil
reform_group(group)
end