Skip to content

Commit e2de33c

Browse files
authored
hail hydra bugfix (#1558)
Fixed empty unit_group creation, leading to lag on large maps
1 parent 9c242d7 commit e2de33c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

map_gen/shared/hail_hydra.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ local on_died =
151151
if group and group.valid and #group.members > 0 then
152152
group.set_command(command)
153153
end
154+
if group and group.valid and #group.members == 0 then
155+
group.destroy()
156+
end
154157
end
155158
end
156159
)

0 commit comments

Comments
 (0)