summaryrefslogtreecommitdiff
path: root/script/vm/function.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/function.lua')
-rw-r--r--script/vm/function.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/function.lua b/script/vm/function.lua
index 45f8c0df..2a169bd6 100644
--- a/script/vm/function.lua
+++ b/script/vm/function.lua
@@ -117,7 +117,7 @@ function vm.countReturnsOfFunction(func)
max = dmax
end
end
- return min, max
+ return min or 0, max or math.huge
end
if func.type == 'doc.type.function' then
return vm.countList(func.returns)