From fea618f945a9cd3e2a81e9331f222291b1a1b737 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 6 Dec 2011 17:00:40 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4724 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/dialogs/LevelupDialog.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/game/modules/tome/dialogs/LevelupDialog.lua b/game/modules/tome/dialogs/LevelupDialog.lua
index 8835d8ba49..408ec746ff 100644
--- a/game/modules/tome/dialogs/LevelupDialog.lua
+++ b/game/modules/tome/dialogs/LevelupDialog.lua
@@ -458,7 +458,7 @@ function _M:getStatNewTalents(stat_id)
 end
 
 function _M:finish()
-	local ok, dep_miss = self:checkDeps()
+	local ok, dep_miss = self:checkDeps(true)
 	if not ok then
 		self:simpleLongPopup("Impossible", "You cannot learn this talent(s): "..dep_miss, game.w * 0.4)
 		return nil
@@ -641,7 +641,7 @@ function _M:learn(v)
 	end
 end
 
-function _M:checkDeps()
+function _M:checkDeps(simple)
 	local talents = ""
 	local stats_ok = true
 
@@ -659,7 +659,7 @@ function _M:checkDeps()
 		end
 
 		local dlist = self.talents_deps[t_id]
-		if dlist then for dtid, _ in pairs(dlist) do check(dtid) end end
+		if dlist and not simple then for dtid, _ in pairs(dlist) do check(dtid) end end
 	end
 
 	for t_id, _ in pairs(self.talents_changed) do check(t_id) end
-- 
GitLab