summaryrefslogtreecommitdiff
path: root/src/cmd2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd2.c')
-rw-r--r--src/cmd2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd2.c b/src/cmd2.c
index 828cbc35..a2dcfa0a 100644
--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -4696,7 +4696,7 @@ void do_cmd_sacrifice(void)
/* In books it depends of the spell levels*/
if (o_ptr->tval == TV_BOOK)
{
- int x = exec_lua(format("return levels_in_book(%d, %d)", o_ptr->sval, o_ptr->pval));
+ int x = levels_in_book(o_ptr->sval, o_ptr->pval);
inc_piety(GOD_MELKOR, 2 * x);
}