summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.cpp
diff options
context:
space:
mode:
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;