summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-05 13:16:37 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-05 13:16:37 +0000
commit09a89593b983a9ade807175192fcf63971748f7c (patch)
tree155e93385dfbf0d649f9c4ea4b6ddc4dbddada30 /src/map/pc.c
parent3a6eb585d49b8c9fadaecddd25ef4b667f814777 (diff)
downloadhercules-09a89593b983a9ade807175192fcf63971748f7c.tar.gz
hercules-09a89593b983a9ade807175192fcf63971748f7c.tar.bz2
hercules-09a89593b983a9ade807175192fcf63971748f7c.tar.xz
hercules-09a89593b983a9ade807175192fcf63971748f7c.zip
- Made the struct weapon_atk lhw in status_data a static member rather than a pointer as requested by Ultra Mage.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11858 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 2ccab3a5a..368f355f0 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1441,8 +1441,8 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
status->rhw.atk = cap_value(bonus, 0, USHRT_MAX);
}
else if(sd->state.lr_flag == 1) {
- bonus = status->lhw->atk + val;
- status->lhw->atk = cap_value(bonus, 0, USHRT_MAX);
+ bonus = status->lhw.atk + val;
+ status->lhw.atk = cap_value(bonus, 0, USHRT_MAX);
}
break;
case SP_ATK2:
@@ -1451,8 +1451,8 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
status->rhw.atk2 = cap_value(bonus, 0, USHRT_MAX);
}
else if(sd->state.lr_flag == 1) {
- bonus = status->lhw->atk2 + val;
- status->lhw->atk2 = cap_value(bonus, 0, USHRT_MAX);
+ bonus = status->lhw.atk2 + val;
+ status->lhw.atk2 = cap_value(bonus, 0, USHRT_MAX);
}
break;
case SP_BASE_ATK:
@@ -1535,7 +1535,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
}
break;
case 1:
- status->lhw->ele=val;
+ status->lhw.ele=val;
break;
default:
status->rhw.ele=val;
@@ -1594,7 +1594,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
}
break;
case 1:
- status->lhw->range += val;
+ status->lhw.range += val;
break;
default:
status->rhw.range += val;