diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 23:23:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 23:23:46 +0300 |
commit | 3080545899d9eacacd527133763b0fe39ab8c896 (patch) | |
tree | 60deeb7ae6646a34acc6075c73a1d7a1bb0f3b72 /src | |
parent | 7380aa6e86b51ef62530bea5d6f6f63244dffc4a (diff) | |
download | manaverse-3080545899d9eacacd527133763b0fe39ab8c896.tar.gz manaverse-3080545899d9eacacd527133763b0fe39ab8c896.tar.bz2 manaverse-3080545899d9eacacd527133763b0fe39ab8c896.tar.xz manaverse-3080545899d9eacacd527133763b0fe39ab8c896.zip |
Remove useless checks.
Diffstat (limited to 'src')
-rw-r--r-- | src/being/playerinfo.cpp | 9 |
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; } |