From c0210077d48c560d8093c49ceb6b55244720cb61 Mon Sep 17 00:00:00 2001 From: sprunk Date: Thu, 22 Jun 2023 03:22:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20a=20tacnuke=20indicator=20?= =?UTF-8?q?crash.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaRules/Gadgets/unit_missilewarn.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LuaRules/Gadgets/unit_missilewarn.lua b/LuaRules/Gadgets/unit_missilewarn.lua index be7e77b556..5a8093c140 100644 --- a/LuaRules/Gadgets/unit_missilewarn.lua +++ b/LuaRules/Gadgets/unit_missilewarn.lua @@ -33,6 +33,9 @@ function gadget:Initialize() end function gadget:ProjectileCreated(proID, proOwnerID, weaponID) + if not proOwnerID or proOwnerID == -1 then + return -- tacnuke nanoframe death is technically launching an ownerless, TTL=0 missile + end SendToUnsynced(MAGIC_FIRED, proID, proOwnerID, weaponID) end