SPAWNSTATIC - bugfix on canCargo, mass could be set but not transported into the template spawn

This commit is contained in:
Applevangelist 2021-09-24 11:04:54 +02:00
parent 69449430d1
commit 1c97eb6f3c

View File

@ -422,7 +422,11 @@ function SPAWNSTATIC:_SpawnStatic(Template, CountryID)
end end
if self.InitCargo~=nil then if self.InitCargo~=nil then
Template.isCargo=self.InitCargo Template.canCargo=self.InitCargo
end
if self.InitCargoMass~=nil then
Template.mass=self.InitCargoMass
end end
if self.InitLinkUnit then if self.InitLinkUnit then