From 36a5e91eac1f715ec79fd1c51747eab1df03bedd Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 3 Oct 2009 08:40:13 +0000 Subject: [PATCH] support old data (eressea 1.0) --- src/common/kernel/save.c | 4 +++- src/scripts/eressea.lua | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/kernel/save.c b/src/common/kernel/save.c index 31634d52d..6e93b952a 100644 --- a/src/common/kernel/save.c +++ b/src/common/kernel/save.c @@ -1296,7 +1296,9 @@ readfaction(struct storage * store) } read_groups(store, f); f->spellbook = NULL; - read_spellist(&f->spellbook, store); + if (store->version>=REGIONOWNER_VERSION) { + read_spellist(&f->spellbook, store); + } return f; } diff --git a/src/scripts/eressea.lua b/src/scripts/eressea.lua index 844f40979..e12ce4c3b 100644 --- a/src/scripts/eressea.lua +++ b/src/scripts/eressea.lua @@ -9,8 +9,6 @@ function loadscript(name) end end -loadscript("default.lua") - function change_locales() -- local localechange = { } local localechange = { de = { "rtph" } }