summaryrefslogtreecommitdiff
path: root/src/emap/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-14 21:51:07 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-14 21:51:07 +0300
commit70c2ecd3b0abcc968b8fefff580d0b8530873965 (patch)
tree256e4a7f2fc2965f4e0c0a5c8fae4df06cc78ec9 /src/emap/pc.c
parentcbd196f3d0f747827af6c571ffb92a1d1606c0d5 (diff)
downloadplugin-70c2ecd3b0abcc968b8fefff580d0b8530873965.tar.gz
plugin-70c2ecd3b0abcc968b8fefff580d0b8530873965.tar.bz2
plugin-70c2ecd3b0abcc968b8fefff580d0b8530873965.tar.xz
plugin-70c2ecd3b0abcc968b8fefff580d0b8530873965.zip
Update from hercules. Fix compilation errors.
Diffstat (limited to 'src/emap/pc.c')
-rw-r--r--src/emap/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c
index 5eca163..07dd75d 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -264,12 +264,12 @@ void epc_validate_levels_pre(void)
int i;
for (i = 0; i < 7; i++) {
if (!pc->db_checkid(i)) continue;
- if (i == JOB_WEDDING || i == JOB_XMAS || i == JOB_SUMMER)
+ 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])
+ if (pc->max_level[j][0] == 0)
ShowWarning("Class %d does not has a base exp table.\n", i);
- if (!pc->max_level[j][1])
+ if (pc->max_level[j][1] == 0)
ShowWarning("Class %d does not has a job exp table.\n", i);
}
hookStop();