DESIGNATE Class Fix

DESIGNATE
- GetRootMenu() function seems obsolete and caused a crash in DESIGNATE class. Needs to be replaced by GetMenu() Function. This bug only appeared when a mission is given in DESIGNATE:New(...)
This commit is contained in:
funkyfranky
2018-07-23 22:24:59 +02:00
parent dc39107daa
commit 3526203ccb
5 changed files with 18 additions and 8 deletions

View File

@@ -798,6 +798,7 @@ function SET_GROUP:GetAliveSet()
-- Clean the Set before returning with only the alive Groups.
for GroupName, GroupObject in pairs( self.Set ) do
local GroupObject=GroupObject --Wrapper.Group#GROUP
if GroupObject then
if GroupObject:IsAlive() then
AliveSet:Add( GroupName, GroupObject )