summaryrefslogtreecommitdiffstats
path: root/acf/persistence/backends/volatile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/persistence/backends/volatile.lua')
-rw-r--r--acf/persistence/backends/volatile.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/acf/persistence/backends/volatile.lua b/acf/persistence/backends/volatile.lua
index 165e7fc..339f937 100644
--- a/acf/persistence/backends/volatile.lua
+++ b/acf/persistence/backends/volatile.lua
@@ -24,7 +24,7 @@ function backend:_get(path)
for _, comp in ipairs(path) do
if res == nil then return end
assert(type(res) == 'table')
- res = res[tonumber(comp) or comp]
+ res = res[comp]
end
return res
end
@@ -43,7 +43,7 @@ function backend:_set(path, tpe, value)
local comps = copy(path)
local name = comps[#comps]
table.remove(comps)
- self:_get(comps)[tonumber(name) or name] = value
+ self:_get(comps)[name] = value
end
end