Skip to content

Commit

Permalink
πŸ› Fix a tacnuke indicator crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
sprunk committed Jun 22, 2023
1 parent 7a586f4 commit c021007
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LuaRules/Gadgets/unit_missilewarn.lua
Expand Up @@ -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

Expand Down

0 comments on commit c021007

Please sign in to comment.