From 46afaed6555abf5cfdb979e7b1e0b3a619ee36ae Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Sat, 9 Oct 2010 01:57:04 +0000 Subject: Replaced all nullpo_retr() calls which returned 0 with nullpo_ret() calls. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14414 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index c5a1f4272..2a7b4de18 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -179,8 +179,8 @@ int battle_delay_damage (unsigned int tick, int amotion, struct block_list *src, { struct delay_damage *dat; struct status_change *sc; - nullpo_retr(0, src); - nullpo_retr(0, target); + nullpo_ret(src); + nullpo_ret(target); sc = status_get_sc(target); if( sc && sc->data[SC_DEVOTION] && damage > 0 ) @@ -278,7 +278,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damag struct status_change_entry *sce; int div_ = d->div_, flag = d->flag; - nullpo_retr(0, bl); + nullpo_ret(bl); if( !damage ) return 0; @@ -713,7 +713,7 @@ int battle_addmastery(struct map_session_data *sd,struct block_list *target,int int weapon; damage = dmg; - nullpo_retr(0, sd); + nullpo_ret(sd); if((skill = pc_checkskill(sd,AL_DEMONBANE)) > 0 && target->type == BL_MOB && //This bonus doesnt work against players. @@ -3331,8 +3331,8 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f int strip_enemy = 1; //Flag which marks whether to remove the BCT_ENEMY status if it's also friend/ally. struct block_list *s_bl = src, *t_bl = target; - nullpo_retr(0, src); - nullpo_retr(0, target); + nullpo_ret(src); + nullpo_ret(target); m = target->m; -- cgit v1.2.3-70-g09d2