summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIbrahem Zidan <brahem@aotsw.com>2019-05-22 23:05:15 +0200
committerGitHub <noreply@github.com>2019-05-22 23:05:15 +0200
commit1ec85a8305b633f619b60818aca6f580547848bd (patch)
tree947e6aa12b1ede68f198b7cdb5973283c3606da0
parent647a3d2513746a17636bea354ad5a56c1db853e1 (diff)
parent0ab1aa3a8b8079dea73ced15398e4c53dd8361c4 (diff)
downloadhercules-1ec85a8305b633f619b60818aca6f580547848bd.tar.gz
hercules-1ec85a8305b633f619b60818aca6f580547848bd.tar.bz2
hercules-1ec85a8305b633f619b60818aca6f580547848bd.tar.xz
hercules-1ec85a8305b633f619b60818aca6f580547848bd.zip
Merge pull request #2481 from 4144/fixrefine
Fix reading rates from refine db
-rw-r--r--src/map/refine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/refine.c b/src/map/refine.c
index 1ff893c56..4fe6e73c4 100644
--- a/src/map/refine.c
+++ b/src/map/refine.c
@@ -528,7 +528,7 @@ static int refine_readdb_refine_libconfig_sub(struct config_setting_t *r, const
chance[i][j] = 100; // default value for all rates.
struct config_setting_t *t = NULL;
- for (int i = 0; (t = libconfig->setting_get_elem(rate, i++)) != NULL && config_setting_is_group(t); ++i) {
+ for (int i = 0; (t = libconfig->setting_get_elem(rate, i)) != NULL && config_setting_is_group(t); ++i) {
int level = 0, i32;
char *rlvl = config_setting_name(t);
memset(&lv, 0, sizeof(lv));