F10 Marker text fix (#1840)

This commit is contained in:
Rolln 2022-11-11 12:01:32 -07:00 committed by GitHub
parent 09b86d6fdf
commit 911f4523a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,7 +506,7 @@ function PLAYERTASK:MarkTargetOnF10Map(Text,Coalition,ReadOnly)
self.TargetMarker:Remove()
end
local text = Text or "Target of "..self.lid
self.TargetMarker = MARKER:New(coordinate,"Target of "..self.lid)
self.TargetMarker = MARKER:New(coordinate,text)
if ReadOnly then
self.TargetMarker:ReadOnly()
end