summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-09 21:08:37 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-09 21:11:29 +0200
commitf790281b94d37f7ea2c2e8fc7b121266d88f93bb (patch)
tree8ab2f3155ef6422d0d4f6f436a356038b9b5463a /src/player.cpp
parent3dacb9b09622375d35d704c8ac9d7039d506026f (diff)
downloadmana-f790281b94d37f7ea2c2e8fc7b121266d88f93bb.tar.gz
mana-f790281b94d37f7ea2c2e8fc7b121266d88f93bb.tar.bz2
mana-f790281b94d37f7ea2c2e8fc7b121266d88f93bb.tar.xz
mana-f790281b94d37f7ea2c2e8fc7b121266d88f93bb.zip
Increased the distance between head and overhead text a bit
Plus some small code cleanups.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 478cb18b..382008e2 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -253,9 +253,9 @@ void Player::removeGuild(int id)
mGuilds.erase(id);
}
-Guild* Player::getGuild(const std::string &guildName)
+Guild *Player::getGuild(const std::string &guildName) const
{
- std::map<int, Guild*>::iterator itr, itr_end = mGuilds.end();
+ std::map<int, Guild*>::const_iterator itr, itr_end = mGuilds.end();
for (itr = mGuilds.begin(); itr != itr_end; ++itr)
{
Guild *guild = itr->second;
@@ -268,9 +268,9 @@ Guild* Player::getGuild(const std::string &guildName)
return NULL;
}
-Guild* Player::getGuild(int id)
+Guild *Player::getGuild(int id) const
{
- std::map<int, Guild*>::iterator itr;
+ std::map<int, Guild*>::const_iterator itr;
itr = mGuilds.find(id);
if (itr != mGuilds.end())
{