diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-02-05 19:22:46 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-02-05 19:22:46 +0100 |
commit | 437b72f56737f16356ba61d769d85d85b7e70926 (patch) | |
tree | 8245229926f324cc5994e05a13252428d4afab24 /src/notes.cc | |
parent | 5cecddb28bf224e06fc062ed430dd8322b2d3cff (diff) |
Make get_player_race_name() return a std::string
Diffstat (limited to 'src/notes.cc')
-rw-r--r-- | src/notes.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/notes.cc b/src/notes.cc index 326381c9..69269291 100644 --- a/src/notes.cc +++ b/src/notes.cc @@ -129,9 +129,10 @@ void add_note_type(int note_number) char player[100]; /* Build the string containing the player information */ + auto const player_race_name = get_player_race_name(p_ptr->prace, p_ptr->pracem); sprintf(player, "the %s %s", - get_player_race_name(p_ptr->prace, p_ptr->pracem), + player_race_name.c_str(), class_info[p_ptr->pclass].spec[p_ptr->pspec].title); /* Add in "character start" information */ |