bug deleted 'pairs' in loop

This commit is contained in:
2024-11-06 11:06:16 +01:00
parent 7c0b6fc33f
commit 388fb337e1
+1 -1
View File
@@ -316,7 +316,7 @@ do
local players = Spearhead.DcsUtil.getAllPlayerUnits()
local unitName = unit:getName()
for i, unit in (players) do
for i, unit in pairs(players) do
if unit:getName() == unitName then
return true
end