diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/World/Chunk.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp index 17b5406..cdc2806 100644 --- a/src/World/Chunk.cpp +++ b/src/World/Chunk.cpp @@ -117,7 +117,10 @@ void Chunk::analyzeChunk() { blockSkyLight.reset(new uint8_t[maxY * SIZE * SIZE / 2]); blockBlockLight.reset(new uint8_t[maxY * SIZE * SIZE / 2]); + std::memset(blockIDs.get(), 0, maxY * SIZE * SIZE); + std::memset(blockData.get(), 0, maxY * SIZE * SIZE / 2); std::memset(blockSkyLight.get(), 0xff, maxY * SIZE * SIZE / 2); + std::memset(blockBlockLight.get(), 0, maxY * SIZE * SIZE / 2); for (auto §ion : *sections) { |