summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 85bdec27..4535494c 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1010,7 +1010,7 @@ function m.isGlobal(source)
local node = source.node
if node.special == 'rawget'
or node.special == 'rawset' then
- if source.args[1] then
+ if source.args and source.args[1] then
local isGlobal = source.args[1].special == '_G'
source._isGlobal = isGlobal
return isGlobal