diff options
-rw-r--r-- | src/world.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/world.cpp b/src/world.cpp index 56a0b735..4e8e0095 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -81,6 +81,7 @@ world::world(size_t capacity) : _chunks{capacity} chunk& world::operator[](chunk_coords_ coord) noexcept { + fm_debug_assert(coord.z >= -8 && coord.z < 8); auto& [c, coord2] = _last_chunk; if (coord != coord2) c = &_chunks.try_emplace(coord, *this).first->second; |