diff options
author | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:26 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:26 +0100 |
commit | 7b8a1e0fb285c4d85e01c3720b0b4b4460d42a66 (patch) | |
tree | 8bc2cf499085a7f03b8db3af99fe1fa9460139d9 /src/spells4.cc | |
parent | a88a24099785fd61f6c02cc2b99e3710500b1768 (diff) |
Change spell info_func to use std::string
Diffstat (limited to 'src/spells4.cc')
-rw-r--r-- | src/spells4.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spells4.cc b/src/spells4.cc index 6305439e..ab79788c 100644 --- a/src/spells4.cc +++ b/src/spells4.cc @@ -418,7 +418,7 @@ int print_spell(const char *label_, byte color, int y, s32b s) s32b level; bool na; spell_type *spell = spell_at(s); - const char *spell_info = spell_type_info(spell); + auto spell_info = spell_type_info(spell); const char *label = (label_ == NULL) ? "" : label_; char level_str[8] = "n/a"; char buf[128]; @@ -439,7 +439,7 @@ int print_spell(const char *label_, byte color, int y, s32b s) level_str, get_mana(s), (int) spell_chance_book(s), - spell_info); + spell_info.c_str()); c_prt(color, buf, y, 0); return y + 1; |