Commit 6f63966b841dd30d49078e9b29d80b1ada61bb13
1 parent
832b90f7
fix
git-svn-id: http://svn.net-core.org/repos/t-engine4@6191 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -1759,7 +1759,7 @@ function _M:displayHotkeys(scale, bx, by) |
1759 | 1759 | game:tooltipDisplayAtMap(game.w, game.h, text) |
1760 | 1760 | end, |
1761 | 1761 | function(i, hk) |
1762 | - if button == "right" and kh and hk[1] == "talent" then | |
1762 | + if button == "right" and hk and hk[1] == "talent" then | |
1763 | 1763 | local d = require("mod.dialogs.UseTalents").new(game.player) |
1764 | 1764 | d:use({talent=hk[2], name=game.player:getTalentFromId(hk[2]).name}, "right") |
1765 | 1765 | return true | ... | ... |
-
Please register or login to post a comment