diff --git a/src/kernel/save.c b/src/kernel/save.c index 507592ab6..545a45c6a 100644 --- a/src/kernel/save.c +++ b/src/kernel/save.c @@ -1204,7 +1204,7 @@ static ally **addally(const faction * f, ally ** sfp, int aid, int state) return &sf->next; } -static struct spellbook *read_spellbook(struct storage *store) +struct spellbook *read_spellbook(struct storage *store) { spellbook * book = 0; int level; @@ -1239,7 +1239,7 @@ static struct spellbook *read_spellbook(struct storage *store) return book; } -static void write_spellbook(const struct spellbook *book, struct storage *store) +void write_spellbook(const struct spellbook *book, struct storage *store) { quicklist *ql; int qi; diff --git a/src/kernel/save.h b/src/kernel/save.h index 5d3770b26..41f1c4893 100644 --- a/src/kernel/save.h +++ b/src/kernel/save.h @@ -47,6 +47,9 @@ extern "C" { extern void read_items(struct storage *store, struct item **it); extern void write_items(struct storage *store, struct item *it); + extern struct spellbook *read_spellbook(struct storage *store); + extern void write_spellbook(const struct spellbook *book, struct storage *store); + extern void write_unit(struct storage *store, const struct unit *u); extern struct unit *read_unit(struct storage *store);