From eccd81d40abd1e849c82954514f9e8dbec95c7cb Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Fri, 24 Sep 2021 11:05:42 +0200 Subject: [PATCH] SPAWNSTATIC - bigfix on canCargo (not:isCargo) and mass (not transported into template) when spawning --- Moose Development/Moose/Core/SpawnStatic.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Core/SpawnStatic.lua b/Moose Development/Moose/Core/SpawnStatic.lua index 95b41655d..b7a6fae28 100644 --- a/Moose Development/Moose/Core/SpawnStatic.lua +++ b/Moose Development/Moose/Core/SpawnStatic.lua @@ -422,7 +422,11 @@ function SPAWNSTATIC:_SpawnStatic(Template, CountryID) end if self.InitCargo~=nil then - Template.isCargo=self.InitCargo + Template.canCargo=self.InitCargo + end + + if self.InitCargoMass~=nil then + Template.mass=self.InitCargoMass end if self.InitLinkUnit then