From 2786c7a00ca854a5c57bb56f27b19d82fb0ec707 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 9 Aug 2015 18:45:50 +0200 Subject: [PATCH] Fix mistake in variable name - Fixed a global variable --- mods/tsm_pyramids/room.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/tsm_pyramids/room.lua b/mods/tsm_pyramids/room.lua index f523b947..3d15c94f 100755 --- a/mods/tsm_pyramids/room.lua +++ b/mods/tsm_pyramids/room.lua @@ -38,7 +38,7 @@ function loadchests() if file then local saved_chests = minetest.deserialize(file:read()) io.close(file) - if savetable and type(saved_chests) == "table" then + if saved_chests and type(saved_chests) == "table" then minetest.log("action","[tsm_pyramids] Chest loaded") return saved_chests else