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 'description:'
print(self.description) print(self.description)
end end
if #self.params > 0 then if self.params and #self.params > 0 then
print 'parameters:' print 'parameters:'
for _,p in ipairs(self.params) do for _,p in ipairs(self.params) do
print('',p,self.params.map[p]) print('',p,self.params.map[p])