summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 0a7fc46a..ff230860 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -927,6 +927,9 @@ local function stepRefOfLabel(label, mode)
return results
end
local refs = label.ref
+ if not refs then
+ return results
+ end
for i = 1, #refs do
local ref = refs[i]
results[#results+1] = ref