From 8cae3769048aae93dffdea9d330298273464ec52 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Mon, 28 Feb 2022 22:16:16 +0100 Subject: [PATCH] wave defense - minor issue fix --- modules/wave_defense/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wave_defense/main.lua b/modules/wave_defense/main.lua index 8d020842..dab67837 100644 --- a/modules/wave_defense/main.lua +++ b/modules/wave_defense/main.lua @@ -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