From 037d32160462ebf3949c7f1779b1876b8794ab59 Mon Sep 17 00:00:00 2001 From: Wyrrrd Date: Sun, 10 Nov 2024 15:01:04 +0100 Subject: [PATCH] Fix empty table cleanup --- control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.lua b/control.lua index f60b86e..d4cf203 100644 --- a/control.lua +++ b/control.lua @@ -240,7 +240,7 @@ local function generate_alerts() end else -- Cleanup if table is empty - ammo_entites = nil + storage.ammo_entities[surface.name.."_"..player.force.name] = nil end end end