diff options
Diffstat (limited to 'src/chunk-render.cpp')
-rw-r--r-- | src/chunk-render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-render.cpp b/src/chunk-render.cpp index 94200239..9eba6446 100644 --- a/src/chunk-render.cpp +++ b/src/chunk-render.cpp @@ -69,7 +69,7 @@ auto chunk::ensure_wall_mesh() noexcept -> wall_mesh_tuple if (_wall_atlases[i]) wall_indexes[count++] = uint16_t(i); - std::sort(wall_indexes.begin(), wall_indexes.begin() + count, + std::sort(wall_indexes.data(), wall_indexes.data() + (ptrdiff_t)count, [this](uint16_t a, uint16_t b) { return _wall_atlases[a] < _wall_atlases[b]; }); |