summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/pc.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index d106763b0..3dc9df217 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/07/12
+ * Fixed a small typo in my code [Zido]
* Added negative value in bonus exploit fix for more stat bonuses [Zido]
* Fixed exploit in pc_bonus there are no checks that check that the value being
added onto a status don't make it go below zero, which means if you have a mineral
diff --git a/src/map/pc.c b/src/map/pc.c
index e08c4242a..8c0d54fa2 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1271,7 +1271,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
status->rhw.atk+=val;
}
else if(sd->state.lr_flag == 1) {
- if(!(val<0 && ((val-val-val)>status->lhw.atk)))
+ if(!(val<0 && ((val-val-val)>status->lhw->atk)))
status->lhw->atk+=val;
}
break;
@@ -1281,7 +1281,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
status->rhw.atk2+=val;
}
else if(sd->state.lr_flag == 1) {
- if(!(val<0 && ((val-val-val)>status->lhw.atk2)))
+ if(!(val<0 && ((val-val-val)>status->lhw->atk2)))
status->lhw->atk2+=val;
}
break;