diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-26 21:52:45 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-26 21:52:45 +0000 |
commit | 2ea484313f08eb2041274a7f5f37a3ed03fbd646 (patch) | |
tree | 554547e4298f429a070b9b25fb67db7efe71fb32 /src/map/battle.c | |
parent | 9ec5fbe2735ffb4ad524f7f5c2c798872106b0aa (diff) | |
download | hercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.tar.gz hercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.tar.bz2 hercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.tar.xz hercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.zip |
fix build
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@796 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index a5f33a655..92711bcd4 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3076,7 +3076,7 @@ static struct Damage battle_calc_pc_weapon_attack( else damage2 += atkmin_ ; if(sd->atk_rate != 100 || sd->weapon_atk_rate != 0) { - if (((struct map_session_data *)bl)->status.weapon < 16) { + if (sd->status.weapon < 16) { damage = (damage * (sd->atk_rate + sd->weapon_atk_rate[sd->status.weapon]))/100; damage2 = (damage2 * (sd->atk_rate + sd->weapon_atk_rate[sd->status.weapon]))/100; } |