diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 11:12:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 11:12:50 +0200 |
commit | d1984938e4f0cbc24b7b8cc6e219fa873d39418a (patch) | |
tree | d00c6cf0ba66c3285d145527360a0e3aeaef6671 /serialize | |
parent | d17ed6b4ba01a73d33e3ff3ca8f0f6fb25259223 (diff) |
a
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/world-writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/world-writer.cpp b/serialize/world-writer.cpp index 13751fc4..ee955c47 100644 --- a/serialize/world-writer.cpp +++ b/serialize/world-writer.cpp @@ -407,7 +407,7 @@ void writer_state::serialize_chunk(const chunk& c, chunk_coords_ coord) auto s = binary_writer{chunk_buf.begin()}; s << chunk_magic << coord.x << coord.y; - fm_assert(coord.z >= -8 && coord.z < 8); + fm_assert(coord.z >= chunk_min_z && coord.z <= chunk_max_z); s << coord.z; for (auto i = 0uz; i < TILE_COUNT; i++) |