summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp7
-rw-r--r--src/being/being.h3
2 files changed, 4 insertions, 6 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 6e5fa5e92..641f8abd6 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -917,7 +917,7 @@ const Guild *Being::getGuild(const std::string &guildName) const
{
FOR_EACH (GuildsMapCIter, itr, mGuilds)
{
- Guild *const guild = itr->second;
+ const Guild *const guild = itr->second;
if (guild && guild->getName() == guildName)
return guild;
}
@@ -3298,12 +3298,11 @@ void Being::updatePets()
}
}
-void Being::unassignPet(Being *const pet1)
+void Being::unassignPet(const Being *const pet1)
{
FOR_EACH (std::vector<Being*>::iterator, it, mPets)
{
- Being *const pet = *it;
- if (pet == pet1)
+ if (*it == pet1)
{
mPets.erase(it);
return;
diff --git a/src/being/being.h b/src/being/being.h
index 56319c352..7314fe1f1 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -892,7 +892,7 @@ class Being : public ActorSprite, public ConfigListener
void setOwner(Being *const owner)
{ mOwner = owner; }
- void unassignPet(Being *const pet);
+ void unassignPet(const Being *const pet);
void removeAllPets();
@@ -1088,7 +1088,6 @@ class Being : public ActorSprite, public ConfigListener
int mCriticalHit;
unsigned int mPvpRank;
unsigned int mNumber;
- int mPetId;
int mLook;
int mUsageCounter;
unsigned char mHairColor;