From 20b0902768120d261e0ffe1571da61e4f5a2a3c2 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 29 Oct 2024 13:56:28 +0100 Subject: [PATCH] xxx --- Moose Development/Moose/Core/Event.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Moose Development/Moose/Core/Event.lua b/Moose Development/Moose/Core/Event.lua index bb9c9941c..9ae9d6d28 100644 --- a/Moose Development/Moose/Core/Event.lua +++ b/Moose Development/Moose/Core/Event.lua @@ -1474,6 +1474,7 @@ function EVENT:onEvent( Event ) --- Event.TgtDCSUnit = Event.target Event.TgtDCSUnitName = Event.TgtDCSUnit:getName() + if Event.TgtDCSUnitName==nil then return end Event.TgtUnitName = Event.TgtDCSUnitName Event.TgtUnit = SCENERY:Register( Event.TgtDCSUnitName, Event.target ) Event.TgtCategory = Event.TgtDCSUnit:getDesc().category