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

@@ -175,7 +175,7 @@ do -- DESIGNATE
-- Smoke will fire for 5 minutes.
-- Each available recce within range will smoke a target.
-- Smoking can be requested while lasing targets.
-- Smoke will appear around the targets, because of accuracy limitations.
-- Smoke will appear "around" the targets, because of accuracy limitations.
--
--
-- Have FUN!
@@ -952,7 +952,8 @@ do -- DESIGNATE
local MissionMenu = nil
if self.Mission then
MissionMenu = self.Mission:GetRootMenu( AttackGroup )
--MissionMenu = self.Mission:GetRootMenu( AttackGroup )
MissionMenu = self.Mission:GetMenu( AttackGroup )
end
local MenuTime = timer.getTime()