summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-06 15:38:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-06 15:38:56 +0200
commit17b2aed123899a8b4b8547fa18671fa3eb3e48fe (patch)
tree2c4ba1cb30feff94d3c4a25594efad3a4b55cef6 /src/world.cpp
parentd402f109df796e691306879903ddf09b2328d9e6 (diff)
a
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 29c9378e..221b98f8 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -92,7 +92,7 @@ chunk& world::operator[](chunk_coords_ coord) noexcept
auto world::operator[](global_coords pt) noexcept -> pair
{
- auto& c = operator[]({pt.chunk(), pt.z()});
+ auto& c = operator[](chunk_coords_{pt});
return { c, c[pt.local()] };
}