Small fix for SET_UNIT if used in capture zone coalition with a polygon zone

This commit is contained in:
Applevangelist 2023-03-30 09:24:08 +02:00
parent ff656182e8
commit f3b6b27521

View File

@ -2113,10 +2113,12 @@ do -- SET_UNIT
self:F2( Unit:GetName() )
self:Add( Unit:GetName(), Unit )
-- Set the default cargo bay limit each time a new unit is added to the set.
Unit:SetCargoBayWeightLimit()
if Unit:IsInstanceOf("UNIT") then
-- Set the default cargo bay limit each time a new unit is added to the set.
Unit:SetCargoBayWeightLimit()
end
return self
end