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

View File

@ -249,9 +249,9 @@ do
function DCSEx.world.getMarkerByText(text, coalition)
if not text then return nil end
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 ""
markerText = markerText:lower()
if markerText == text then