summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-18 19:02:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-18 19:02:45 +0300
commitf1812857720449697c9106a7a3776b7202258cb3 (patch)
treeeb100f3d713c3faeebd057c6c3d572e17295d345 /src/being
parent33b6e130de855dd3a81e739168a668d898f78e9e (diff)
downloadmv-f1812857720449697c9106a7a3776b7202258cb3.tar.gz
mv-f1812857720449697c9106a7a3776b7202258cb3.tar.bz2
mv-f1812857720449697c9106a7a3776b7202258cb3.tar.xz
mv-f1812857720449697c9106a7a3776b7202258cb3.zip
Fix code style in beingequipbackend and add some consts to it.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/playerinfo.cpp2
-rw-r--r--src/being/playerinfo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index a374d8b5b..0f9eb6b6c 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -234,7 +234,7 @@ Equipment *getEquipment()
return mEquipment;
}
-Item *getEquipment(const unsigned int slot)
+const Item *getEquipment(const unsigned int slot)
{
if (mEquipment)
return mEquipment->getEquipment(slot);
diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h
index c45ba8a06..fbd8d4109 100644
--- a/src/being/playerinfo.h
+++ b/src/being/playerinfo.h
@@ -183,7 +183,7 @@ namespace PlayerInfo
/**
* Returns the player's equipment at the given slot.
*/
- Item *getEquipment(const unsigned int slot) A_WARN_UNUSED;
+ const Item *getEquipment(const unsigned int slot) A_WARN_UNUSED;
// --- Misc -------------------------------------------------------------------