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/clua.cc | |
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/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index 3094ef8d71..9feb395618 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -707,7 +707,8 @@ static const char *transform_name() LUARET1(you_turn_is_over, boolean, you.turn_is_over) LUARET1(you_name, string, you.your_name) -LUARET1(you_race, string, species_name(you.species, you.experience_level)) +LUARET1(you_race, string, + species_name(you.species, you.experience_level).c_str()) LUARET1(you_class, string, get_class_name(you.char_class)) LUARET1(you_god, string, god_name(you.religion)) LUARET2(you_hp, number, you.hp, you.hp_max) |