mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
commit
27571cc22f
@ -7978,7 +7978,7 @@ function SET_OPSGROUP:_EventOnBirth(Event)
|
||||
function SET_OPSGROUP:_EventOnDeadOrCrash( Event )
|
||||
--self:F( { Event } )
|
||||
|
||||
if Event.IniDCSUnit then
|
||||
if Event.IniDCSGroup then
|
||||
local ObjectName, Object = self:FindInDatabase( Event )
|
||||
if ObjectName then
|
||||
if Event.IniDCSGroup:getSize() == 1 then -- Only remove if the last unit of the group was destroyed.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user