forked from github/server
fix an issue when reading pre-spellbook datafiles for E3.
This commit is contained in:
parent
31ca0ce052
commit
a975073c0d
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue