summaryrefslogtreecommitdiff
path: root/src/object1.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-05-17 08:40:49 +0200
committerBardur Arantsson <bardur@scientician.net>2012-05-18 11:47:20 +0200
commit159e8b3ec190d6a99c3d42e78dc2c55bdd0f6f41 (patch)
treed62350d07472fe091aa3c7d39fbbca3649636623 /src/object1.c
parentccb4ffd3033ac953c064b590709e0a88ff659003 (diff)
Lua: Separate get_spell_info() function
Diffstat (limited to 'src/object1.c')
-rw-r--r--src/object1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object1.c b/src/object1.c
index b834eb91..3b418651 100644
--- a/src/object1.c
+++ b/src/object1.c
@@ -2847,7 +2847,7 @@ void describe_device(object_type *o_ptr)
text_out_c(TERM_GREEN, string_exec_lua(format("return tostring(spell_chance(%d))", o_ptr->pval2)));
text_out("\nSpell info: ");
- text_out_c(TERM_YELLOW, string_exec_lua(format("return __spell_info[%d]()", o_ptr->pval2)));
+ text_out_c(TERM_YELLOW, get_spell_info(o_ptr->pval2));
/* Leave device mode */
unset_stick_mode();