Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726
parent
eec456be63
commit
24a631ee2a
|
@ -53,7 +53,7 @@ local function read_file(filename)
|
||||||
local t = f:read("*all")
|
local t = f:read("*all")
|
||||||
f:close()
|
f:close()
|
||||||
if t=="" or t==nil then return {} end
|
if t=="" or t==nil then return {} end
|
||||||
return core.deserialize(t)
|
return core.deserialize(t) or {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function write_file(filename, table)
|
local function write_file(filename, table)
|
||||||
|
|
Loading…
Reference in New Issue