diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-14 10:34:17 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-14 10:34:17 +0000 |
commit | 5641020eb4684b3898fe4f35cf5391977abd4ea8 (patch) | |
tree | b429b02dc4b72d6fbcef9dac32ea020bf9e0262e /src/map | |
parent | ce2cb8133d4a82d4607d89828f3e64cd4b9ade18 (diff) | |
download | hercules-5641020eb4684b3898fe4f35cf5391977abd4ea8.tar.gz hercules-5641020eb4684b3898fe4f35cf5391977abd4ea8.tar.bz2 hercules-5641020eb4684b3898fe4f35cf5391977abd4ea8.tar.xz hercules-5641020eb4684b3898fe4f35cf5391977abd4ea8.zip |
Follow up r16424 fixed warning, missing parenthesis.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16426 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index db7871ae9..d7daf262f 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5445,7 +5445,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in clif_skill_nodamage(src,bl,skillid,skilllv,1); i = map_foreachinrange(skill_area_sub, bl, skill_get_splash(skillid, skilllv), splash_target(src), src, skillid, skilllv, tick, flag|BCT_ENEMY|SD_SPLASH|1, skill_castend_damage_id); - if( !i && skillid == NC_AXETORNADO || skillid == SR_SKYNETBLOW ) + if( !i && ( skillid == NC_AXETORNADO || skillid == SR_SKYNETBLOW ) ) clif_skill_damage(src,src,tick, status_get_amotion(src), 0, -30000, 1, skillid, skilllv, 6); break; @@ -10022,9 +10022,8 @@ static int skill_icewall_block(struct block_list *bl,va_list ap) { nullpo_ret(bl); nullpo_ret(md); - if( !md->target_id ) + if( !md->target_id || ( target = map_id2bl(md->target_id) ) == NULL ) return 0; - nullpo_ret( ( target = map_id2bl(md->target_id) ) ); if( path_search_long(NULL,bl->m,bl->x,bl->y,target->x,target->y,CELL_CHKICEWALL) ) return 0; |