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