summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place-info.cc
diff options
context:
space:
mode:
authorpubby <pubby8@gmail.com>2013-06-30 14:01:58 -0500
committerNeil Moore <neil@s-z.org>2013-06-30 18:49:12 -0400
commitfaf8416790ef3e910264d7ef83a243078e933cb2 (patch)
treed5d6e74dbad7fd7ab61e0c793b370cb9f5c46540 /crawl-ref/source/place-info.cc
parent3dbd8d124c34f4fcf6db89c28bbeb6d6ed53b8c8 (diff)
downloadcrawl-ref-faf8416790ef3e910264d7ef83a243078e933cb2.tar.gz
crawl-ref-faf8416790ef3e910264d7ef83a243078e933cb2.zip
Remove use of 'you' inside player member functions
'you' seemed to be pointless in such context anyways, and lead to some const correctness bugs since '*this' could have a different const-ness from 'you'.
Diffstat (limited to 'crawl-ref/source/place-info.cc')
-rw-r--r--crawl-ref/source/place-info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/place-info.cc b/crawl-ref/source/place-info.cc
index d0122e131f..49cb3659c6 100644
--- a/crawl-ref/source/place-info.cc
+++ b/crawl-ref/source/place-info.cc
@@ -127,7 +127,7 @@ PlaceInfo& player::get_place_info(branch_type branch) const
void player::clear_place_info()
{
- you.global_info = PlaceInfo();
+ global_info = PlaceInfo();
for (unsigned int i = 0; i < NUM_BRANCHES; ++i)
branch_info[i] = PlaceInfo();
}