From 313d4612b5af4371c00d24fa3559a7310c6f3849 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 1 Oct 2007 19:18:06 +0000 Subject: Fixed bad species name (eg: deep elves with the bows title) in dump because of reuse of static buffers (Iaido). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2288 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/skills2.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/skills2.h') diff --git a/crawl-ref/source/skills2.h b/crawl-ref/source/skills2.h index 8618d6ee76..fe737bba7a 100644 --- a/crawl-ref/source/skills2.h +++ b/crawl-ref/source/skills2.h @@ -30,15 +30,16 @@ int str_to_skill(const std::string &skill); /* *********************************************************************** * called from: describe * *********************************************************************** */ -const char * skill_title( unsigned char best_skill, unsigned char skill_lev, - // these used for ghosts and hiscores: - int species = -1, int str = -1, int dex = -1, int god = -1 ); +std::string skill_title( + unsigned char best_skill, unsigned char skill_lev, + // these used for ghosts and hiscores: + int species = -1, int str = -1, int dex = -1, int god = -1 ); // last_updated Sept 20 -- bwr /* *********************************************************************** * called from: acr - chardump - player - skills - stuff * *********************************************************************** */ -const char *player_title( void ); +std::string player_title( void ); // last_updated 24may2000 {dlb} -- cgit v1.2.3-54-g00ecf