Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726
authorNovatux <nathanael.courant@laposte.net>
Sat, 12 Jul 2014 08:51:09 +0000 (10:51 +0200)
committerNovatux <nathanael.courant@laposte.net>
Sun, 13 Jul 2014 09:05:07 +0000 (11:05 +0200)
builtin/game/forceloading.lua

index 147f12fa074875c2e2bd206d28571355e0b9c763..8c9fbf51225d5a1878aa14b6a411adcd7c1e2362 100644 (file)
@@ -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)