diff options
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 34705072..335c8f24 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1189,8 +1189,10 @@ local function bindClassAndFields(binded) end class = doc elseif doc.type == 'doc.field' then - class.fields[#class.fields+1] = doc - doc.class = class + if class then + class.fields[#class.fields+1] = doc + doc.class = class + end end end end |