From 6dc0abe0ba70d87bae5c869eebef43682566c1c3 Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 18 Jun 2007 10:28:18 +0000 Subject: More strings instead of char*s. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1599 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/ghost.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crawl-ref/source/ghost.cc') 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 ); -- cgit v1.2.3-54-g00ecf