summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-09 17:16:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-09 17:16:08 +0100
commitac04d36a63087570964511239c75e94689affc94 (patch)
treec26dee92cd03026ea9c0dd9ef7781edae0bf54c3 /src/chunk.cpp
parenta806c1a9dfeaa8e63df596f73d98ae41f2891b07 (diff)
a
Diffstat (limited to 'src/chunk.cpp')
-rw-r--r--src/chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp
index 652bd63d..aabb69f8 100644
--- a/src/chunk.cpp
+++ b/src/chunk.cpp
@@ -61,7 +61,7 @@ Optional<tile_ref> chunk::at_offset_(local_coords pos, Vector2i off)
return operator[](coord2.local());
else
{
- if (auto* ch = _world->at({coord2}))
+ if (auto* ch = _world->at(coord2.chunk3()))
return (*ch)[coord2.local()];
else
return NullOpt;