summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZido <Zido@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-13 01:17:11 +0000
committerZido <Zido@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-13 01:17:11 +0000
commitc00ed0956fd4b1d822ee1323b0946472b8329d55 (patch)
treecc6fe9e6c3df2b2b4454138d9ac629c28fb71071
parent67f9690315ec4d42f397a234ffe509fbf9d23ced (diff)
downloadhercules-c00ed0956fd4b1d822ee1323b0946472b8329d55.tar.gz
hercules-c00ed0956fd4b1d822ee1323b0946472b8329d55.tar.bz2
hercules-c00ed0956fd4b1d822ee1323b0946472b8329d55.tar.xz
hercules-c00ed0956fd4b1d822ee1323b0946472b8329d55.zip
- Fixed a small typo in my code
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7649 54d463be-8e91-2dee-dedb-b68131a5f0ec
-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;