From 3080545899d9eacacd527133763b0fe39ab8c896 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 23:23:46 +0300 Subject: Remove useless checks. --- src/being/playerinfo.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2