From 6257baccabe0f4477e7d3165e52ddf714dcff540 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Dec 2015 01:48:40 +0300 Subject: Add const attribute to being classes. --- src/being/localplayer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/being/localplayer.h') diff --git a/src/being/localplayer.h b/src/being/localplayer.h index e47ad4d20..582382e2c 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -356,7 +356,7 @@ class LocalPlayer final : public Being, int getPathLength(const Being *const being) const A_WARN_UNUSED; - void targetMoved() const; + void targetMoved() const A_CONST; void setLastHitFrom(const std::string &n) { mLastHitFrom = n; } @@ -365,7 +365,8 @@ class LocalPlayer final : public Being, void checkNewName(Being *const being); - unsigned char getBlockWalkMask() const override final A_WARN_UNUSED; + unsigned char getBlockWalkMask() const override final + A_CONST A_WARN_UNUSED; void saveHomes(); -- cgit v1.2.3-70-g09d2