mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Add check for whether targetcoord is nil in UpdateMarker() call
This commit is contained in:
parent
e2929a78c4
commit
2e9320df03
@ -5776,10 +5776,12 @@ function AUFTRAG:UpdateMarker()
|
|||||||
-- Get target coordinates. Can be nil!
|
-- Get target coordinates. Can be nil!
|
||||||
local targetcoord=self:GetTargetCoordinate()
|
local targetcoord=self:GetTargetCoordinate()
|
||||||
|
|
||||||
if self.markerCoaliton and self.markerCoaliton>=0 then
|
if targetcoord then
|
||||||
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToCoalition(self.markerCoaliton)
|
if self.markerCoaliton and self.markerCoaliton>=0 then
|
||||||
else
|
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToCoalition(self.markerCoaliton)
|
||||||
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToAll()
|
else
|
||||||
|
self.marker=MARKER:New(targetcoord, text):ReadOnly():ToAll()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user