mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed bug in Escort class, ROE and ROT was not working. Fixed now...
Problem was with variable owning the function was not called properly.
This commit is contained in:
@@ -393,7 +393,7 @@ function ESCORT._ROE( MenuParam )
|
||||
local EscortROEFunction = MenuParam.ParamFunction
|
||||
local EscortROEMessage = MenuParam.ParamMessage
|
||||
|
||||
EscortROEFunction()
|
||||
pcall( function() EscortROEFunction() end )
|
||||
EscortGroup:MessageToClient( EscortROEMessage, 10, EscortClient )
|
||||
end
|
||||
|
||||
@@ -407,7 +407,7 @@ function ESCORT._ROT( MenuParam )
|
||||
local EscortROTFunction = MenuParam.ParamFunction
|
||||
local EscortROTMessage = MenuParam.ParamMessage
|
||||
|
||||
EscortROTFunction()
|
||||
pcall( function() EscortROTFunction() end )
|
||||
EscortGroup:MessageToClient( EscortROTMessage, 10, EscortClient )
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user