summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-30 22:18:30 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-30 22:18:30 +0000
commit73ba9e032adaf71bc4603b33e4448cb1db6f676c (patch)
tree7c628089651bf2dd2d42b84260880055fb50de3f /src/map/status.c
parent41d6c04de583963eb404739d66501546e96c838b (diff)
downloadhercules-73ba9e032adaf71bc4603b33e4448cb1db6f676c.tar.gz
hercules-73ba9e032adaf71bc4603b33e4448cb1db6f676c.tar.bz2
hercules-73ba9e032adaf71bc4603b33e4448cb1db6f676c.tar.xz
hercules-73ba9e032adaf71bc4603b33e4448cb1db6f676c.zip
* Fixed out-of-bound access to percentrefinery array causing refine bonuses stop working (bugreport:4598, since r14526).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14531 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 80a31bcae..eb0bef30a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -7749,7 +7749,7 @@ static bool status_readdb_refine(char* fields[], int columns, int current)
refinebonus[current][1] = atoi(fields[1]); // stats after safe-limit
refinebonus[current][2] = atoi(fields[2]); // safe limit
- for(i = 0; i < columns; i++)
+ for(i = 0; i < MAX_REFINE; i++)
{
percentrefinery[current][i] = atoi(fields[3+i]);
}