diff options
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp index ef78f313..f0818b44 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -81,7 +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); + fm_debug_assert(coord.z >= chunk_min_z && coord.z <= chunk_max_z); auto& [c, coord2] = _last_chunk; if (coord != coord2) c = &_chunks.try_emplace(coord, *this).first->second; |