summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/vm.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index a26fe808..02ced843 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -879,6 +879,7 @@ function mt:doFunction(action)
local value = self:buildFunction(action)
local source = name[#name]
self:instantSource(source)
+ source:set('simple', name)
source:set('parent', parent)
source:set('object', parent)
if source.type == 'index' then
@@ -908,6 +909,7 @@ function mt:doFunction(action)
local value = self:buildFunction(action)
local source = name[#name]
self:instantSource(source)
+ source:set('simple', name)
source:set('parent', parent)
if source.type == 'index' then
local index = self:getIndex(source)