diff options
author | pubby <pubby8@gmail.com> | 2013-06-30 14:01:58 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-06-30 18:49:12 -0400 |
commit | faf8416790ef3e910264d7ef83a243078e933cb2 (patch) | |
tree | d5d6e74dbad7fd7ab61e0c793b370cb9f5c46540 /crawl-ref/source/actor.h | |
parent | 3dbd8d124c34f4fcf6db89c28bbeb6d6ed53b8c8 (diff) | |
download | crawl-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/actor.h')
-rw-r--r-- | crawl-ref/source/actor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/actor.h b/crawl-ref/source/actor.h index 2246ed23bd..84fa42e141 100644 --- a/crawl-ref/source/actor.h +++ b/crawl-ref/source/actor.h @@ -111,7 +111,7 @@ public: return weapon(0); } virtual int has_claws(bool allow_tran = true) const = 0; - virtual item_def *shield() = 0; + virtual item_def *shield() const = 0; virtual item_def *slot_item(equipment_type eq, bool include_melded=false) const = 0; virtual int wearing(equipment_type slot, int sub_type, |