mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix msvc build
This commit is contained in:
parent
7e92a16016
commit
8a5042f2a2
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ std::shared_ptr<Chunk> ChunksStorage::create(int x, int z) {
|
|||
auto& localChunksMap = chunksMap;
|
||||
auto chunk = std::shared_ptr<Chunk>(
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue