From a975073c0d686097263cac93269d83650d419642 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 2 Jul 2015 14:39:13 +0200 Subject: [PATCH] fix an issue when reading pre-spellbook datafiles for E3. --- src/kernel/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/save.c b/src/kernel/save.c index fdfe9aad9..928feedf2 100644 --- a/src/kernel/save.c +++ b/src/kernel/save.c @@ -1119,7 +1119,7 @@ void read_spellbook(spellbook **bookp, struct storage *store, int(*get_level)(co *bookp = create_spellbook(0); 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); } }