summaryrefslogtreecommitdiff
path: root/src/map
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 /src/map
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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
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];