aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-07-12 10:51:09 +0200
committerNovatux <nathanael.courant@laposte.net>2014-07-13 11:05:07 +0200
commit24a631ee2ae54709b700ff236820c7d56c4d8917 (patch)
tree11a214ed5c06556a199f561941dd522f4f085187 /builtin
parenteec456be63f6fee8604f7a9c40aa41a1af3f1fac (diff)
downloadminetest-24a631ee2ae54709b700ff236820c7d56c4d8917.tar.gz
minetest-24a631ee2ae54709b700ff236820c7d56c4d8917.tar.bz2
minetest-24a631ee2ae54709b700ff236820c7d56c4d8917.zip
Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/forceloading.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/forceloading.lua b/builtin/game/forceloading.lua
index 147f12fa0..8c9fbf512 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)