cSetChunkData constructor explicitly requires std::move() instead of
unsafely stealing data
This commit is contained in:
@@ -3712,7 +3712,7 @@ void cWorld::cChunkGeneratorCallbacks::OnChunkGenerated(cChunkDesc & a_ChunkDesc
|
||||
a_ChunkDesc.GetBlockTypes(), BlockMetas,
|
||||
nullptr, nullptr, // We don't have lighting, chunk will be lighted when needed
|
||||
&a_ChunkDesc.GetHeightMap(), &a_ChunkDesc.GetBiomeMap(),
|
||||
a_ChunkDesc.GetEntities(), a_ChunkDesc.GetBlockEntities(),
|
||||
std::move(a_ChunkDesc.GetEntities()), std::move(a_ChunkDesc.GetBlockEntities()),
|
||||
true
|
||||
));
|
||||
SetChunkData->RemoveInvalidBlockEntities();
|
||||
|
||||
Reference in New Issue
Block a user