diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-26 22:42:44 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-26 22:42:44 +0000 |
commit | 9cedf4890c7b99e7ac205905cbe771069e96654f (patch) | |
tree | 0c7eddf0dabc053b5decc734cb6c8016f507fea9 /src/map/mercenary.c | |
parent | 8d0a5dfc4561cf2f7ed7dc34807b651868164040 (diff) | |
download | hercules-9cedf4890c7b99e7ac205905cbe771069e96654f.tar.gz hercules-9cedf4890c7b99e7ac205905cbe771069e96654f.tar.bz2 hercules-9cedf4890c7b99e7ac205905cbe771069e96654f.tar.xz hercules-9cedf4890c7b99e7ac205905cbe771069e96654f.zip |
Small bug fix in read_homunculus_expdb (a warning was always displayed)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8495 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r-- | src/map/mercenary.c | 2 |
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;
|