mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed GROUP:IsAlive() returning true even if all group members aredead
Fixed the mechanism by checking if the group has a :getUnit(1) ~= nil
This commit is contained in:
@@ -184,7 +184,7 @@ function GROUP:IsAlive()
|
||||
local DCSGroup = self:GetDCSObject()
|
||||
|
||||
if DCSGroup then
|
||||
local GroupIsAlive = DCSGroup:isExist()
|
||||
local GroupIsAlive = DCSGroup:isExist() and DCSGroup:getUnit(1) ~= nil
|
||||
self:T3( GroupIsAlive )
|
||||
return GroupIsAlive
|
||||
end
|
||||
|
||||
14
Moose Development/Moose/XXX - Header Template.lua
Normal file
14
Moose Development/Moose/XXX - Header Template.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
-- Name: XXX-999 - Title
|
||||
-- Author: YYY
|
||||
-- Date Created: DD Mmm YYYY
|
||||
--
|
||||
-- # Situation:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- # Test cases:
|
||||
--
|
||||
-- 1.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user