summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-04 11:00:51 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-04 11:00:51 +0000
commit83b5f1fcc494f68448a91873bf77cbee60da74e6 (patch)
treec248360f584633032b5399e612c3c6f202175f0a /src/map/unit.c
parent93e451c8629c46ec86d01c6d573e3c8dca2ed3d8 (diff)
downloadhercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.tar.gz
hercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.tar.bz2
hercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.tar.xz
hercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.zip
Fixed a couple compiling warnings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16375 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index ed4035ebe..dbd71878c 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2410,14 +2410,12 @@ int unit_free(struct block_list *bl, clr_type clrtype)
case BL_ELEM: {
struct elemental_data *ed = (TBL_ELEM*)bl;
struct map_session_data *sd = ed->master;
- if( clrtype >= 0 ) {
- if( elemental_get_lifetime(ed) > 0 )
- elemental_save(ed);
- else {
- intif_elemental_delete(ed->elemental.elemental_id);
- if( sd )
- sd->status.ele_id = 0;
- }
+ if( elemental_get_lifetime(ed) > 0 )
+ elemental_save(ed);
+ else {
+ intif_elemental_delete(ed->elemental.elemental_id);
+ if( sd )
+ sd->status.ele_id = 0;
}
if( sd )
sd->ed = NULL;