summaryrefslogtreecommitdiff
path: root/server/src/core/value.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/value.lua')
-rw-r--r--server/src/core/value.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/value.lua b/server/src/core/value.lua
index 05248d0d..a998d195 100644
--- a/server/src/core/value.lua
+++ b/server/src/core/value.lua
@@ -19,7 +19,7 @@ function mt:inference(tp, rate)
if not tp then
tp = 'nil'
end
- if tp == 'any' then
+ if tp == 'any' or tp == 'nil' then
rate = 0.0
end
if not self._type then