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.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/vm/function.lua b/script/vm/function.lua
index 1ba01363..be58bf7c 100644
--- a/script/vm/function.lua
+++ b/script/vm/function.lua
@@ -486,7 +486,9 @@ function mt:setEmmy(params, returns, overLoads)
self._emmyParams = params
for _, param in ipairs(params) do
param:getSource():set('emmy function', self)
- param:getSource()[1]:set('emmy function', self)
+ if param:getSource()[1] then
+ param:getSource()[1]:set('emmy function', self)
+ end
end
end
if returns then