fix an issue when reading pre-spellbook datafiles for E3.

This commit is contained in:
Enno Rehling 2015-07-02 14:39:13 +02:00
parent 31ca0ce052
commit a975073c0d
1 changed files with 1 additions and 1 deletions

View File

@ -1119,7 +1119,7 @@ void read_spellbook(spellbook **bookp, struct storage *store, int(*get_level)(co
*bookp = create_spellbook(0); *bookp = create_spellbook(0);
sb = *bookp; sb = *bookp;
} }
if (global.data_version >= SPELLBOOK_VERSION || !spellbook_get(sb, sp)) { if (level>0 && (global.data_version >= SPELLBOOK_VERSION || !spellbook_get(sb, sp))) {
spellbook_add(sb, sp, level); spellbook_add(sb, sp, level);
} }
} }