- Fixed A/C starting on ALERT5
- Fixed nil check for DrawID in UndrawZone
This commit is contained in:
Frank
2023-12-03 20:51:19 +01:00
parent 3243c92331
commit cca5a5d55d
2 changed files with 9 additions and 4 deletions

View File

@@ -480,12 +480,14 @@ function ZONE_BASE:UndrawZone(Delay)
if Delay and Delay>0 then
self:ScheduleOnce(Delay, ZONE_BASE.UndrawZone, self)
else
if self.DrawID and type(self.DrawID) ~= "table" then
UTILS.RemoveMark(self.DrawID)
else -- DrawID is a table with a collections of mark ids, as used in ZONE_POLYGON
if self.DrawID then
if type(self.DrawID) ~= "table" then
UTILS.RemoveMark(self.DrawID)
else -- DrawID is a table with a collections of mark ids, as used in ZONE_POLYGON
for _, mark_id in pairs(self.DrawID) do
UTILS.RemoveMark(mark_id)
UTILS.RemoveMark(mark_id)
end
end
end
end
return self