diff options
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index f5eb692c4c..6b46af1b06 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -999,14 +999,14 @@ static void tag_read_you(struct tagHeader &th, char minorVersion) you.pet_target = unmarshallByte(th); you.max_level = unmarshallByte(th); - you.where_are_you = unmarshallByte(th); + you.where_are_you = static_cast<branch_type>( unmarshallByte(th) ); you.char_direction = unmarshallByte(th); you.your_level = unmarshallByte(th); you.is_undead = unmarshallByte(th); you.special_wield = unmarshallByte(th); you.berserker = unmarshallByte(th); you.berserk_penalty = unmarshallByte(th); - you.level_type = unmarshallByte(th); + you.level_type = static_cast<level_area_type>( unmarshallByte(th) ); you.synch_time = unmarshallByte(th); you.disease = unmarshallByte(th); you.species = unmarshallByte(th); |