Fix logic error when dumping non-function objects

This commit is contained in:
Kyle McLamb 2016-06-03 03:28:00 -04:00
parent aa4cd9daf8
commit 5be42470c3
1 changed files with 1 additions and 1 deletions

View File

@ -1285,7 +1285,7 @@ function Item:dump(verbose)
print 'description:'
print(self.description)
end
if #self.params > 0 then
if self.params and #self.params > 0 then
print 'parameters:'
for _,p in ipairs(self.params) do
print('',p,self.params.map[p])