summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/playerinfo.cpp')
-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;
}