From: Novatux Date: Sat, 12 Jul 2014 08:51:09 +0000 (+0200) Subject: Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726 X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=24a631ee2ae54709b700ff236820c7d56c4d8917;p=zefram%2Fminetest%2Fminetest_engine.git Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726 --- diff --git a/builtin/game/forceloading.lua b/builtin/game/forceloading.lua index 147f12fa..8c9fbf51 100644 --- a/builtin/game/forceloading.lua +++ b/builtin/game/forceloading.lua @@ -53,7 +53,7 @@ local function read_file(filename) local t = f:read("*all") f:close() if t=="" or t==nil then return {} end - return core.deserialize(t) + return core.deserialize(t) or {} end local function write_file(filename, table)