summaryrefslogtreecommitdiff
path: root/src/map/mercenary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r--src/map/mercenary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index b9fc4b473..152340fc8 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -968,7 +968,7 @@ void read_homunculus_expdb()
if (!hexptbl[j++])
break;
}
- if (!feof(fp) || hexptbl[MAX_LEVEL - 1])
+ if (hexptbl[MAX_LEVEL - 1]) // Last permitted level have to be 0!
{
ShowWarning("read_hexptbl: Reached max level in exp_homun [%d]. Remaining lines were not read.\n ", MAX_LEVEL);
hexptbl[MAX_LEVEL - 1] = 0;