From f093fef8f8bbdd6941d1ac09c53d93798eb6cff9 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 30 Mar 2023 09:23:51 +0200 Subject: [PATCH] Small fix for SET_UNIT if used in capture zone coalition with a polygon zone --- Moose Development/Moose/Core/Set.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Core/Set.lua b/Moose Development/Moose/Core/Set.lua index 7382ffe09..091276242 100644 --- a/Moose Development/Moose/Core/Set.lua +++ b/Moose Development/Moose/Core/Set.lua @@ -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