summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-07 09:05:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-07 09:05:18 +0200
commit100f35c5129b28c12aa776b5664a9e29f1f551bf (patch)
treefff276ba524144835edb48f4e58da5094b3cf15c /src/world.cpp
parent259219f76c49e6dee0ea7fa0ca09731354fc847f (diff)
chunk: add hack to prevent character feet clipping
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 97cc4702..46a65f64 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -91,7 +91,7 @@ chunk& world::operator[](chunk_coords_ coord) noexcept
fm_debug_assert(coord.z >= chunk_z_min && coord.z <= chunk_z_max);
auto& [c, coord2] = _last_chunk;
if (coord != coord2)
- c = &_chunks.try_emplace(coord, *this).first->second;
+ c = &_chunks.try_emplace(coord, *this, coord).first->second;
coord2 = coord;
return *c;
}