summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-06-07 06:52:53 +0000
committerAsheraf <acheraf1998@gmail.com>2018-06-07 06:52:53 +0000
commit01e7abdf093ae78b6b8b78414b80764cee2c2420 (patch)
tree8467816e55dfc062a2cc4a93871c94c31bc8d785 /src/map
parentfb16806ce0588414c5b808df535b72ef9e7ff6ba (diff)
downloadhercules-01e7abdf093ae78b6b8b78414b80764cee2c2420.tar.gz
hercules-01e7abdf093ae78b6b8b78414b80764cee2c2420.tar.bz2
hercules-01e7abdf093ae78b6b8b78414b80764cee2c2420.tar.xz
hercules-01e7abdf093ae78b6b8b78414b80764cee2c2420.zip
Fix a crash caused by removing entries in job_db
Diffstat (limited to 'src/map')
-rw-r--r--src/map/status.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index bf48d2301..4e2724d61 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -13114,7 +13114,8 @@ void status_read_job_db_sub(int idx, const char *name, struct config_setting_t *
pc->dbs->class_exp_table[idx][CLASS_EXP_TABLE_BASE] = &VECTOR_INDEX(pc->class_exp_groups[CLASS_EXP_TABLE_BASE], i);
}
} else {
- ShowError("status_read_job_db: BaseExpGroup setting not found for entry '%s'\n", name);
+ ShowError("status_read_job_db: BaseExpGroup setting not found for entry '%s', skipping..\n", name);
+ return;
}
/**
@@ -13129,7 +13130,8 @@ void status_read_job_db_sub(int idx, const char *name, struct config_setting_t *
pc->dbs->class_exp_table[idx][CLASS_EXP_TABLE_JOB] = &VECTOR_INDEX(pc->class_exp_groups[CLASS_EXP_TABLE_JOB], i);
}
} else {
- ShowError("status_read_job_db: JobExpGroup setting not found for entry '%s'\n", name);
+ ShowError("status_read_job_db: JobExpGroup setting not found for entry '%s', skipping..\n", name);
+ return;
}
if ((temp = libconfig->setting_get_member(jdb, "Inherit"))) {