Explorar el Código

Changed hardcoded "5" to MAX_ARROW_RESOURCE in skill_arrow_create preventing proper usage. (bugreport:3025)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13855 54d463be-8e91-2dee-dedb-b68131a5f0ec
Paradox924X hace 16 años
padre
commit
72d10c2811
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/skill.c

+ 1 - 0
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]

+ 1 - 1
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];