summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 1e59167c7e..00bce8440b 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -161,7 +161,7 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift,
mprf(MSGCH_WARN,
"Wait a moment, %s! Do you really want to step there?",
- you.your_name);
+ you.your_name.c_str());
if (!you.running.is_any_travel())
more();
@@ -5852,7 +5852,7 @@ void player::init()
wizard = false;
#endif
- your_name[0] = 0;
+ your_name = "";
banished = false;
banished_by.clear();