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:
FlightControl
2016-04-04 23:20:37 +02:00
parent a3c7e7983b
commit d8704b4028
3 changed files with 13 additions and 13 deletions

View File

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