summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-22 22:43:59 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-22 22:43:59 +0300
commit0ab1aa3a8b8079dea73ced15398e4c53dd8361c4 (patch)
tree947e6aa12b1ede68f198b7cdb5973283c3606da0
parent647a3d2513746a17636bea354ad5a56c1db853e1 (diff)
downloadhercules-0ab1aa3a8b8079dea73ced15398e4c53dd8361c4.tar.gz
hercules-0ab1aa3a8b8079dea73ced15398e4c53dd8361c4.tar.bz2
hercules-0ab1aa3a8b8079dea73ced15398e4c53dd8361c4.tar.xz
hercules-0ab1aa3a8b8079dea73ced15398e4c53dd8361c4.zip
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));