summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8c0d54fa2..8402c1fa8 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1329,7 +1329,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
break;
case SP_MDEF1:
if(sd->state.lr_flag != 2) {
- if(!(val<0 && ((val-val-val)>status->matk_mdef))) {
+ if(!(val<0 && ((val-val-val)>status->mdef))) {
bonus = status->mdef + val;
status->mdef = cap_value(bonus, CHAR_MIN, CHAR_MAX);
}
@@ -1337,7 +1337,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
break;
case SP_MDEF2:
if(sd->state.lr_flag != 2) {
- if(!(val<0 && ((val-val-val)>status->matk_mdef2))) {
+ if(!(val<0 && ((val-val-val)>status->mdef2))) {
bonus = status->mdef2 + val;
status->mdef2 = cap_value(bonus, SHRT_MIN, SHRT_MAX);
}