Stupid me, did not set the flag!!!

This commit is contained in:
FlightControl_Master 2017-10-17 10:34:35 +02:00
parent 3a8c1f97f1
commit 291df87beb

View File

@ -168,7 +168,10 @@ function UNIT:Destroy()
local DCSObject = self:GetDCSObject()
if DCSObject then
USERFLAG:New( self:GetGroup():GetName() ):Set( 100 )
local UnitGroup = self:GetGroup()
local UnitGroupName = UnitGroup:GetName()
self:F( { UnitGroupName = UnitGroupName } )
USERFLAG:New( UnitGroupName ):Set( 100 )
--BASE:CreateEventCrash( timer.getTime(), DCSObject )
DCSObject:destroy()
end