Skip to content
Permalink
Browse files

Fix reading rates from refine db

  • Loading branch information...
4144 committed May 22, 2019
1 parent 647a3d2 commit 0ab1aa3a8b8079dea73ced15398e4c53dd8361c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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));

0 comments on commit 0ab1aa3

Please sign in to comment.
You can’t perform that action at this time.