clearing playarea "missingData" table when highlighting

This commit is contained in:
Chr1Z93 2023-02-04 03:21:32 +01:00
parent 94deae2848
commit 33750606d0

View File

@ -602,13 +602,15 @@ end
-- highlights all locations in the play area without metadata
---@param state Boolean True if highlighting should be enabled
function highlightMissingData(state)
for _, obj in pairs(missingData) do
for i, obj in pairs(missingData) do
if obj ~= nil then
if state then
obj.highlightOff("Red")
else
obj.highlightOn("Red")
end
else
missingData[i] = nil
end
end
end