From dfe2ed2a9874d6d7cd6dd58d6a9f51d2169b6249 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 29 Oct 2024 13:57:21 +0100 Subject: [PATCH] #EVENT - Fix for TgtUnit Name being unobtainable --- 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