summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 8cdb33306c..a1004bf4be 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1082,6 +1082,10 @@ static void tag_construct_you_items(writer &th)
for (j = 0; j < NUM_BOOKS; ++j)
marshallByte(th,you.had_book[j]);
+ marshallShort(th, NUM_SPELLS);
+ for (j = 0; j < NUM_SPELLS; ++j)
+ marshallByte(th,you.seen_spell[j]);
+
// how many unrandarts?
marshallShort(th, NO_UNRANDARTS);
@@ -1522,6 +1526,11 @@ static void tag_read_you_items(reader &th, char minorVersion)
for (j = 0; j < count_c; ++j)
you.had_book[j] = unmarshallByte(th);
+ // how many spells?
+ count_s = unmarshallShort(th);
+ for (j = 0; j < count_s; ++j)
+ you.seen_spell[j] = unmarshallByte(th);
+
// how many unrandarts?
count_s = unmarshallShort(th);
for (j = 0; j < count_s; ++j)