Skip to content

Commit ae8f941

Browse files
Adding missing guards when launching minimap
1 parent e05d9eb commit ae8f941

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Minimap.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ function RemoveMinimapIfExist(targetBp)
4848
return true
4949
end
5050
end
51+
52+
for i, val in ipairs(OmniMinimapPanes) do
53+
if targetBp == val then
54+
OmniMinimapPanes[i]:Quit()
55+
table.remove(OmniMinimapTargetPanes, i)
56+
table.remove(OmniMinimapPanes, i)
57+
table.remove(OmniMinimapRecords, i)
58+
return true
59+
end
60+
end
61+
5162
return false
5263
end
5364

0 commit comments

Comments
 (0)