SPAWNSTATIC - bigfix on canCargo (not:isCargo) and mass (not transported into template) when spawning

This commit is contained in:
Applevangelist 2021-09-24 11:05:42 +02:00
parent 649136f98f
commit eccd81d40a

View File

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