From 8a5042f2a22664aacb22241346894ae156fb2962 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 12 Dec 2024 02:54:56 +0300 Subject: [PATCH] fix msvc build --- src/voxels/ChunksStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;