summaryrefslogtreecommitdiff
path: root/src/emap/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-14 22:35:55 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-14 22:35:55 +0300
commit593e49e7155324969f880bab1e677ba8e86bcbaa (patch)
tree86e5b7df6a71bc0496154d8960fa51c66e7db32c /src/emap/pc.c
parent70c2ecd3b0abcc968b8fefff580d0b8530873965 (diff)
downloadplugin-593e49e7155324969f880bab1e677ba8e86bcbaa.tar.gz
plugin-593e49e7155324969f880bab1e677ba8e86bcbaa.tar.bz2
plugin-593e49e7155324969f880bab1e677ba8e86bcbaa.tar.xz
plugin-593e49e7155324969f880bab1e677ba8e86bcbaa.zip
Fix compilaiton error after hercules update.
Diffstat (limited to 'src/emap/pc.c')
-rw-r--r--src/emap/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c
index 07dd75d..d87b132 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -267,9 +267,9 @@ void epc_validate_levels_pre(void)
if (pc->job_is_dummy(i))
continue; //Classes that do not need exp tables.
int j = pc->class2idx(i);
- if (pc->max_level[j][0] == 0)
+ if (pc->dbs->class_exp_table[j][CLASS_EXP_TABLE_BASE] == NULL)
ShowWarning("Class %d does not has a base exp table.\n", i);
- if (pc->max_level[j][1] == 0)
+ if (pc->dbs->class_exp_table[j][CLASS_EXP_TABLE_JOB] == NULL)
ShowWarning("Class %d does not has a job exp table.\n", i);
}
hookStop();