summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/data/load_dat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/data/load_dat.lua')
-rw-r--r--plugins/data/load_dat.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua
index 172f2ef71ca..024dbac0ad3 100644
--- a/plugins/data/load_dat.lua
+++ b/plugins/data/load_dat.lua
@@ -46,7 +46,7 @@ function datfile.open(file, vertag, fixupcb)
if not fh and dbver then
-- data in database but missing file, just use what we have
- return read, dbver
+ return readret(file), dbver
elseif not fh then
return nil
elseif not dbver then
@@ -77,7 +77,7 @@ function datfile.open(file, vertag, fixupcb)
end
if ver == dbver then
fh:close()
- return read, dbver
+ return readret(file), dbver
end
if dbver then