From cd9b57fbcc49977a76235ff85c9822883542ae4e Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 26 Feb 2013 23:07:50 +0000
Subject: [PATCH] Can not loose the savefile by saving on a golem while the
 master is dead

git-svn-id: http://svn.net-core.org/repos/t-engine4@6469 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Game.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua
index 8ebf479ea0..8e967e63de 100644
--- a/game/modules/tome/class/Game.lua
+++ b/game/modules/tome/class/Game.lua
@@ -954,7 +954,8 @@ end
 
 --- Says if this savefile is usable or not
 function _M:isLoadable()
-	return not self:getPlayer(true).dead
+	if not self:getPlayer(true).dead or not self.player.dead then return true end
+	return false
 end
 
 --- Clones the game world for chronomancy spells
-- 
GitLab