Merge pull request #2217 from shaji-Dev/develop

Develop
This commit is contained in:
Thomas 2025-01-11 10:04:44 +01:00 committed by GitHub
commit 27571cc22f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.