summaryrefslogtreecommitdiff
path: root/src/skills.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-09 17:14:22 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-09 17:14:22 +0200
commit4da2e8d9545698b9fc7936e5f6d9a137d0b7c930 (patch)
treed075dc38184ed54cc29398ab2f63328d215a2f9b /src/skills.c
parent76085d3681e4c42b75fddad7be88006c3d97d0d8 (diff)
Lua: Move "skill" help to C
Diffstat (limited to 'src/skills.c')
-rw-r--r--src/skills.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/skills.c b/src/skills.c
index acb63999..2a0a4f18 100644
--- a/src/skills.c
+++ b/src/skills.c
@@ -553,8 +553,10 @@ void do_cmd_skill()
if (wizard && (c == '-')) skill_bonus[table[sel][0]] -= SKILL_STEP;
/* Contextual help */
- if (c == '?') exec_lua(format("ingame_help('select_context', 'skill', '%s')", s_info[table[sel][0]].name + s_name));
- ;
+ if (c == '?')
+ {
+ help_skill(s_info[table[sel][0]].name + s_name);
+ }
/* Handle boundaries and scrolling */
if (sel < 0) sel = max - 1;