diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-30 21:04:17 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-30 21:04:17 +0000 |
commit | 994cf9b5501a4ac46d608147d349e3f91120a350 (patch) | |
tree | 9f42b68b3c64f6287d7afaa648847d706538631f /src/map/battle.c | |
parent | 3309104cd813327b3a060b0549fb8f720ba91481 (diff) | |
download | hercules-994cf9b5501a4ac46d608147d349e3f91120a350.tar.gz hercules-994cf9b5501a4ac46d608147d349e3f91120a350.tar.bz2 hercules-994cf9b5501a4ac46d608147d349e3f91120a350.tar.xz hercules-994cf9b5501a4ac46d608147d349e3f91120a350.zip |
- Added a missing "return 0" that fixes a crash on failed lookups on status_change_timer
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5818 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 479a2c0e1..0bf75eb2d 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -165,7 +165,7 @@ int battle_damage(struct block_list *src,struct block_list *target,int damage, i struct map_session_data *sd = NULL;
struct status_change *sc;
- nullpo_retr(0, target); //stcはNULLで呼ばれることがあるので他でチェック
+ nullpo_retr(0, target); //srcはNULLで呼ばれることがあるので他でチェック
sc = status_get_sc(target);
@@ -2175,8 +2175,8 @@ static struct Damage battle_calc_weapon_attack( {
if(wd.damage2<1) {
wd.damage=battle_calc_damage(src,target,wd.damage,wd.div_,skill_num,skill_lv,wd.flag);
- if (map_flag_gvg(target->m))
- wd.damage=battle_calc_gvg_damage(src,target,wd.damage,wd.div_,skill_num,skill_lv,wd.flag);
+ if (map_flag_gvg(target->m))
+ wd.damage=battle_calc_gvg_damage(src,target,wd.damage,wd.div_,skill_num,skill_lv,wd.flag);
} else if(wd.damage<1) {
wd.damage2=battle_calc_damage(src,target,wd.damage2,wd.div_,skill_num,skill_lv,wd.flag);
if (map_flag_gvg(target->m))
|