Merge branch 'tt/auftrag-UpdateMarker-null-ref-check' into tt/misc-bug-fixes

This commit is contained in:
ttrebuchon
2023-08-13 15:27:16 -04:00
+2
View File
@@ -5776,11 +5776,13 @@ function AUFTRAG:UpdateMarker()
-- Get target coordinates. Can be nil! -- Get target coordinates. Can be nil!
local targetcoord=self:GetTargetCoordinate() local targetcoord=self:GetTargetCoordinate()
if targetcoord then
if self.markerCoaliton and self.markerCoaliton>=0 then if self.markerCoaliton and self.markerCoaliton>=0 then
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToCoalition(self.markerCoaliton) self.marker=MARKER:New(targetcoord, text):ReadOnly():ToCoalition(self.markerCoaliton)
else else
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToAll() self.marker=MARKER:New(targetcoord, text):ReadOnly():ToAll()
end end
end
else else