mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-24 10:15:18 +00:00
Fixed bug in DCSEx.world.getMarkerByText
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user