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/output.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 745f6881b3..a6aac29f88 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -726,11 +726,13 @@ std::vector get_full_detail(bool calc_unid, long sc) "Worship : %s%s\n" "Level : %7d\n" "Exp : %7lu\n", - you.your_name, player_title(), + you.your_name, + player_title().c_str(), score.c_str(), - species_name(you.species,you.experience_level), + species_name(you.species,you.experience_level).c_str(), you.class_name, - god_colour_tag, godpowers.c_str(), + god_colour_tag, + godpowers.c_str(), you.experience_level, you.experience); cols.add_formatted(0, buf, false); @@ -993,12 +995,13 @@ void print_overview_screen() std::string text; char title[50]; - snprintf(title, sizeof title, " the %s ", player_title()); + snprintf(title, sizeof title, " the %s ", player_title().c_str()); char race_class[50]; snprintf(race_class, sizeof race_class, "(%s %s)", - species_name(you.species, you.experience_level), you.class_name); + species_name(you.species, you.experience_level).c_str(), + you.class_name); char time_turns[50] = ""; -- cgit v1.2.3-54-g00ecf