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.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index f3388f935f..72bbfb85f2 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -2425,6 +2425,7 @@ static void marshallGhost(writer &th, const ghost_demon &ghost)
marshallShort(th, ghost.species);
marshallShort(th, ghost.job);
+ marshallByte(th, ghost.religion);
marshallShort(th, ghost.best_skill);
marshallShort(th, ghost.best_skill_level);
marshallShort(th, ghost.xl);
@@ -2453,6 +2454,7 @@ static ghost_demon unmarshallGhost(reader &th)
ghost.species = static_cast<species_type>( unmarshallShort(th) );
ghost.job = static_cast<job_type>( unmarshallShort(th) );
+ ghost.religion = static_cast<god_type>( unmarshallByte(th) );
ghost.best_skill = static_cast<skill_type>( unmarshallShort(th) );
ghost.best_skill_level = unmarshallShort(th);
ghost.xl = unmarshallShort(th);