summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r--crawl-ref/source/ghost.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc
index bda3da6972..69de7c6d88 100644
--- a/crawl-ref/source/ghost.cc
+++ b/crawl-ref/source/ghost.cc
@@ -110,10 +110,7 @@ void ghost_demon::reset()
void ghost_demon::init_random_demon()
{
- char st_p[ITEMNAME_SIZE];
-
- make_name(random_int(), false, st_p);
- name = st_p;
+ name = make_name(random_int(), false);
// hp - could be defined below (as could ev, AC etc). Oh well, too late:
values[ GVAL_MAX_HP ] = 100 + roll_dice( 3, 50 );