Merge branch 'master' into funkyfranky

This commit is contained in:
funkyfranky
2017-10-17 18:23:52 +02:00
2 changed files with 8 additions and 3 deletions

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