summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 9a1b16aab2..06a71f61c8 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -1996,9 +1996,7 @@ struct MonsterWrap
static int l_mons_name(lua_State *ls, monsters *mons, const char *attr)
{
- char monnamebuf[ITEMNAME_SIZE]; // Le sigh.
- moname(mons->type, true, DESC_PLAIN, monnamebuf);
- lua_pushstring(ls, monnamebuf);
+ lua_pushstring(ls, mons_type_name(mons->type, DESC_PLAIN).c_str());
return (1);
}