From 282bf8bd07a1e4c796984b79ee74aed067dfaeb1 Mon Sep 17 00:00:00 2001 From: funkyfranky Date: Sat, 30 Dec 2017 15:03:37 +0100 Subject: [PATCH] RAT fix Fix crash in _WaypointFunction due to self:T Increased version number to 2.0.3 --- Moose Development/Moose/Functional/RAT.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Functional/RAT.lua b/Moose Development/Moose/Functional/RAT.lua index 037e72e8e..d094761f2 100644 --- a/Moose Development/Moose/Functional/RAT.lua +++ b/Moose Development/Moose/Functional/RAT.lua @@ -465,7 +465,7 @@ RAT.id="RAT | " --- RAT version. -- @field #string version -RAT.version="2.0.2" +RAT.version="2.0.3" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -3526,12 +3526,12 @@ function RAT._WaypointFunction(group, rat, wp) if wp==WPfinal then text=string.format("Flight %s arrived at final destination %s.", group:GetName(), destination) MESSAGE:New(text, 10):ToAllIf(rat.reportstatus) - self:T(RAT.id..text) + BASE.T(rat, RAT.id..text) if landing==RAT.wp.air then text=string.format("Activating despawn switch for flight %s! Group will be detroyed soon.", group:GetName()) MESSAGE:New(text, 30):ToAllIf(rat.Debug) - self:T(RAT.id..text) + BASE.T(rat, RAT.id..text) -- Enable despawn switch. Next time the status function is called, the aircraft will be despawned. rat.ratcraft[sdx].despawnme=true end