summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-07 13:11:01 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-07 13:11:01 +0000
commit9ef1a1067576ea1dad9ca99dee573d207d80dcc4 (patch)
tree545ec64674366e356624df5f758952d9407f841e
parente08ebfb66b255385436786db6e95cf9089db25d2 (diff)
downloadhercules-9ef1a1067576ea1dad9ca99dee573d207d80dcc4.tar.gz
hercules-9ef1a1067576ea1dad9ca99dee573d207d80dcc4.tar.bz2
hercules-9ef1a1067576ea1dad9ca99dee573d207d80dcc4.tar.xz
hercules-9ef1a1067576ea1dad9ca99dee573d207d80dcc4.zip
Changed hardcoded "5" to MAX_ARROW_RESOURCE in skill_arrow_create preventing proper usage. (bugreport:3025)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13855 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/skill.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index b8e59565d..b0c6cdefb 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.
09/06/07
+ * Changed hardcoded "5" to MAX_ARROW_RESOURCE in skill_arrow_create preventing proper usage. (bugreport:3025) [Paradox924X]
* Implemented "cooking exp" that increases the success chance of cooking by 0.05% per try and the max bonus is 20%. [Inkfish]
09/06/05
* Job_Battle_Manual and Battle_Manual can be used simultaneously. [Inkfish]
diff --git a/src/map/skill.c b/src/map/skill.c
index 6dc3a1bf4..cc141a0ed 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -11114,7 +11114,7 @@ int skill_arrow_create (struct map_session_data *sd, int nameid)
return 1;
pc_delitem(sd,j,1,0);
- for(i=0;i<5;i++) {
+ for(i=0;i<MAX_ARROW_RESOURCE;i++) {
memset(&tmp_item,0,sizeof(tmp_item));
tmp_item.identify = 1;
tmp_item.nameid = skill_arrow_db[index].cre_id[i];