diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 10:06:12 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 10:06:12 +0200 |
| commit | d17ed6b4ba01a73d33e3ff3ca8f0f6fb25259223 (patch) | |
| tree | da7b7cfccf239d447f1d2130f901ad885b07b0c7 /src/world.cpp | |
| parent | 59becaeefcb564356d87aaf19cf67fccea311ca3 (diff) | |
a
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 4e8e0095..ef78f313 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -91,7 +91,7 @@ chunk& world::operator[](chunk_coords_ coord) noexcept auto world::operator[](global_coords pt) noexcept -> pair { - auto& c = operator[](pt.chunk()); + auto& c = operator[]({pt.chunk(), pt.z()}); return { c, c[pt.local()] }; } |
