diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-01 19:18:06 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-01 19:18:06 +0000 |
commit | 313d4612b5af4371c00d24fa3559a7310c6f3849 (patch) | |
tree | aa465a848b4364d4940f1cdf42baf6e94ce89b20 /crawl-ref/source/skills2.h | |
parent | 1fcb6aa13880495afd0c26e28f9c62d8d99397e0 (diff) | |
download | crawl-ref-313d4612b5af4371c00d24fa3559a7310c6f3849.tar.gz crawl-ref-313d4612b5af4371c00d24fa3559a7310c6f3849.zip |
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
Diffstat (limited to 'crawl-ref/source/skills2.h')
-rw-r--r-- | crawl-ref/source/skills2.h | 9 |
1 files changed, 5 insertions, 4 deletions
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} |