diff options
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r-- | script-beta/vm/eachDef.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua index ab71e7c4..5ff58889 100644 --- a/script-beta/vm/eachDef.lua +++ b/script-beta/vm/eachDef.lua @@ -27,13 +27,8 @@ end function vm.getDefs(source, deep) if guide.isGlobal(source) then - local name = guide.getKeyName(source) - local cache = vm.getCache('eachDefOfGlobal')[name] - or vm.getCache('eachDef')[source] - or eachDef(source, 'deep') - vm.getCache('eachDefOfGlobal')[name] = cache - vm.getCache('eachDef')[source] = cache - return cache + local key = guide.getKeyName(source) + return vm.getGlobalSets(key) else local cache = vm.getCache('eachDef')[source] or eachDef(source, deep) |