From 33750606d0b7d927fbb8cb0c8fec836f4b4e32fe Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Sat, 4 Feb 2023 03:21:32 +0100 Subject: [PATCH] clearing playarea "missingData" table when highlighting --- src/core/PlayArea.ttslua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/PlayArea.ttslua b/src/core/PlayArea.ttslua index eab5a778..9f86f27d 100644 --- a/src/core/PlayArea.ttslua +++ b/src/core/PlayArea.ttslua @@ -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