summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-18 10:28:18 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-18 10:28:18 +0000
commit6dc0abe0ba70d87bae5c869eebef43682566c1c3 (patch)
treeba955f16bde7b2093094bc9eb8302071a25d4c3a /crawl-ref/source/ghost.cc
parentae3f16ee3946f99b45e226547277a7da12425eff (diff)
downloadcrawl-ref-6dc0abe0ba70d87bae5c869eebef43682566c1c3.tar.gz
crawl-ref-6dc0abe0ba70d87bae5c869eebef43682566c1c3.zip
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
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 );