diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-18 19:22:55 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-18 19:22:55 +0100 |
commit | 848f3a16b95be89a1d639ae9ee4ea64e77625e39 (patch) | |
tree | 118d18d61ad834de77fc82618fed24661a154345 /serialize | |
parent | 7b96b68088c11a6bcb1242030b4f20c1d4ee672d (diff) |
c
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/world-reader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/serialize/world-reader.cpp b/serialize/world-reader.cpp index 68da2537..4387acda 100644 --- a/serialize/world-reader.cpp +++ b/serialize/world-reader.cpp @@ -89,7 +89,10 @@ bool read_object_flags(binary_reader<T>& s, U& e) e.playable = !!(flags & 1 << 2); } else + { static_assert(tag == object_type::none); + static_assert(tag != object_type::none); + } return flags & 1 << 7; } |