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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index aefe3e7e70..a9be5532a7 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -264,9 +264,9 @@ T unmarshall_long_as( struct tagHeader& th )
level_id unmarshall_level_id( tagHeader& th )
{
level_id id;
- id.branch = unmarshallByte(th);
+ id.branch = static_cast<branch_type>(unmarshallByte(th));
id.depth = unmarshallLong(th);
- id.level_type = unmarshallByte(th);
+ id.level_type = static_cast<level_area_type>(unmarshallByte(th));
return (id);
}