diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-09 17:16:08 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-09 17:16:08 +0100 |
| commit | ac04d36a63087570964511239c75e94689affc94 (patch) | |
| tree | c26dee92cd03026ea9c0dd9ef7781edae0bf54c3 /src/chunk.cpp | |
| parent | a806c1a9dfeaa8e63df596f73d98ae41f2891b07 (diff) | |
a
Diffstat (limited to 'src/chunk.cpp')
| -rw-r--r-- | src/chunk.cpp | 2 |
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; |
