summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/noder.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 1f8005e3..54fc484c 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1264,6 +1264,9 @@ end
---@param root parser.guide.object
---@param id string
function m.removeID(root, id)
+ if not id then
+ return
+ end
root = guide.getRoot(root)
local noders = root._noders
noders[id] = nil