From fed1fb2839bdd965874d94cb15cc3da52e5905c8 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 20 Dec 2020 23:48:13 +0100 Subject: [PATCH] Update Artillery.lua - fixed bug in :NewFromCargo --- Moose Development/Moose/Functional/Artillery.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Functional/Artillery.lua b/Moose Development/Moose/Functional/Artillery.lua index 8a3d8ebce..199519c34 100644 --- a/Moose Development/Moose/Functional/Artillery.lua +++ b/Moose Development/Moose/Functional/Artillery.lua @@ -693,7 +693,7 @@ ARTY.db={ --- Arty script version. -- @field #string version -ARTY.version="1.1.8" +ARTY.version="1.1.9" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -1146,12 +1146,11 @@ end -- @param alias (Optional) Alias name the group will be calling itself when sending messages. Default is the group name. -- @return #ARTY ARTY object or nil if group does not exist or is not a ground or naval group. function ARTY:NewFromCargoGroup(cargogroup, alias) - BASE:F2({cargogroup=cargogroup, alias=alias}) if cargogroup then - BASE:T(self.lid..string.format("ARTY script version %s. Added CARGO group %s.", ARTY.version, cargogroup:GetName())) + BASE:T(string.format("ARTY script version %s. Added CARGO group %s.", ARTY.version, cargogroup:GetName())) else - BASE:E(self.lid.."ERROR: Requested ARTY CARGO GROUP does not exist! (Has to be a MOOSE CARGO(!) group.)") + BASE:E("ERROR: Requested ARTY CARGO GROUP does not exist! (Has to be a MOOSE CARGO(!) group.)") return nil end