diff options
-rw-r--r-- | server/src/vm/value.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua index 9665a50f..a51040b4 100644 --- a/server/src/vm/value.lua +++ b/server/src/vm/value.lua @@ -384,6 +384,10 @@ function mt:setFunction(func) end function mt:getFunction() + local func = self._func + if not func:getSource() then + self._func = nil + end return self._func end |