From 59dbe9f3a0458bd3d37dc5c74f20ee4df10cd185 Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Fri, 25 Jul 2025 10:24:51 +0200 Subject: [PATCH] Fixed bug in DCSEx.world.getMarkerByText --- Script/DCS extensions/World.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Script/DCS extensions/World.lua b/Script/DCS extensions/World.lua index 3b4a6f8..706f5ac 100644 --- a/Script/DCS extensions/World.lua +++ b/Script/DCS extensions/World.lua @@ -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