From a3f6d534e63413ff24c7abc3bfecc0d2fa9f7aa2 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sat, 22 Jan 2011 18:54:13 +0000 Subject: [PATCH] plo git-svn-id: http://svn.net-core.org/repos/t-engine4@2465 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/dialogs/UseTalents.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/game/modules/tome/dialogs/UseTalents.lua b/game/modules/tome/dialogs/UseTalents.lua index b6eb035cde..8cbe0c2927 100644 --- a/game/modules/tome/dialogs/UseTalents.lua +++ b/game/modules/tome/dialogs/UseTalents.lua @@ -137,6 +137,7 @@ function _M:use(item, button) } for i = 1, 36 do list[#list+1] = {name="Hotkey "..i, what=i} end Dialog:listPopup("Bind talent: "..item.name, "How do you want to bind this talent?", list, 400, 500, function(b) + if not b then return end if type(b.what) == "number" then for i = 1, 36 do if self.actor.hotkey[i] and self.actor.hotkey[i][1] == "talent" and self.actor.hotkey[i][2] == item.talent then self.actor.hotkey[i] = nil end -- GitLab