diff --git a/src/voxels/ChunksStorage.cpp b/src/voxels/ChunksStorage.cpp index 60e3b5445..c19803f47 100644 --- a/src/voxels/ChunksStorage.cpp +++ b/src/voxels/ChunksStorage.cpp @@ -62,7 +62,7 @@ std::shared_ptr ChunksStorage::create(int x, int z) { auto& localChunksMap = chunksMap; auto chunk = std::shared_ptr( new Chunk(x, z), - [localChunksMap, x, z](auto ptr) { + [localChunksMap, x, z](Chunk* ptr) { std::lock_guard lock(*localChunksMap); localChunksMap->erase({x, z}); delete ptr;