From c120a488797c0c8ec99fafaf2fd637a2af526ffb Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 13 Jun 2023 18:00:15 +0200 Subject: [PATCH] #UNIT * Test to not return a stored DCS Object if the API doesn't think it's still there --- Moose Development/Moose/Wrapper/Unit.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Wrapper/Unit.lua b/Moose Development/Moose/Wrapper/Unit.lua index e271ce1a0..11b363bca 100644 --- a/Moose Development/Moose/Wrapper/Unit.lua +++ b/Moose Development/Moose/Wrapper/Unit.lua @@ -179,9 +179,9 @@ function UNIT:GetDCSObject() return DCSUnit end - if self.DCSUnit then - return self.DCSUnit - end + --if self.DCSUnit then + --return self.DCSUnit + --end return nil end