From 73ba9e032adaf71bc4603b33e4448cb1db6f676c Mon Sep 17 00:00:00 2001 From: ai4rei Date: Tue, 30 Nov 2010 22:18:30 +0000 Subject: * 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 --- Changelog-Trunk.txt | 1 + src/map/status.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index e1a7464d3..a82c786be 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,6 +1,7 @@ Date Added 2010/11/30 + * Fixed out-of-bound access to percentrefinery array causing refine bonuses stop working (bugreport:4598, since r14526). [Ai4rei] * Fixed class being used instead of idx in status_readdb_job2 (bugreport:4597, since r14526). [Ai4rei] * Moved function 'exists' (file presense check) to utils.c, so that it is available to code outside of lock.c [Ai4rei] - Fixed associated F_OK and R_OK defines causing 'already defined' warnings on MinGW (since r1361). 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]); } -- cgit v1.2.3-60-g2f50