From 159e8b3ec190d6a99c3d42e78dc2c55bdd0f6f41 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 17 May 2012 08:40:49 +0200 Subject: Lua: Separate get_spell_info() function --- src/object1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object1.c') 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(); -- cgit v1.2.3