Fixed bug in DCSEx.world.getMarkerByText

This commit is contained in:
Ambroise Garel
2025-07-25 10:24:51 +02:00
parent 46cea8eba9
commit 59dbe9f3a0
+2 -2
View File
@@ -249,9 +249,9 @@ do
function DCSEx.world.getMarkerByText(text, coalition) function DCSEx.world.getMarkerByText(text, coalition)
if not text then return nil end if not text then return nil end
text = text:lower() text = text:lower()
local markers = DCSEx.world.getMarkPanels() local markers = world.getMarkPanels()
for _,m in pairs(markers) do for _,m in ipairs(markers) do
local markerText = m.text or "" local markerText = m.text or ""
markerText = markerText:lower() markerText = markerText:lower()
if markerText == text then if markerText == text then