diff options
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r-- | src/lua_bind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c index 67073061..409e005d 100644 --- a/src/lua_bind.c +++ b/src/lua_bind.c @@ -539,7 +539,9 @@ void lua_display_list(int y, int x, int h, int w, cptr title, list_type* list, i int get_lua_int(cptr name) { - return exec_lua(format("return %s", name)); + char buf[128]; + sprintf(buf, "return %s", name); + return exec_lua(buf); } void increase_mana(int delta) |