summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 23:23:46 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 23:23:46 +0300
commit3080545899d9eacacd527133763b0fe39ab8c896 (patch)
tree60deeb7ae6646a34acc6075c73a1d7a1bb0f3b72 /src/being
parent7380aa6e86b51ef62530bea5d6f6f63244dffc4a (diff)
downloadmanaplus-3080545899d9eacacd527133763b0fe39ab8c896.tar.gz
manaplus-3080545899d9eacacd527133763b0fe39ab8c896.tar.bz2
manaplus-3080545899d9eacacd527133763b0fe39ab8c896.tar.xz
manaplus-3080545899d9eacacd527133763b0fe39ab8c896.zip
Remove useless checks.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/playerinfo.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index eb28141b8..11a33a175 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -511,8 +511,7 @@ bool isItemProtected(const int id)
#ifdef EATHENA_SUPPORT
void setMercenary(MercenaryInfo *const info)
{
- if (mMercenary)
- delete mMercenary;
+ delete mMercenary;
mMercenary = info;
}
@@ -533,8 +532,7 @@ MercenaryInfo *getMercenary()
void setPet(PetInfo *const info)
{
- if (mPet)
- delete mPet;
+ delete mPet;
mPet = info;
}
@@ -563,8 +561,7 @@ BeingId getPetBeingId()
void setHomunculus(HomunculusInfo *const info)
{
- if (mHomunculus)
- delete mHomunculus;
+ delete mHomunculus;
mHomunculus = info;
}