summaryrefslogtreecommitdiff
path: root/script/core/noder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/noder.lua')
-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 9f37f463..9fda862e 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -286,6 +286,9 @@ local function getID(source)
while true do
if current.type == 'paren' then
current = current.exp
+ if not current then
+ break
+ end
goto CONTINUE
end
local id, node = getKey(current)