This commit is contained in:
nowinar 2024-11-02 22:30:11 +01:00 committed by GitHub
commit 7c71a02145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,9 +103,11 @@ void Planet::ChunkThreadUpdate()
chunks.find({ pos.x, pos.y, pos.z - 1 }) == chunks.end())
{
delete chunkData.at(pos);
chunkData.erase(pos);
it = chunkData.erase(it);
}
else {
++it;
}
++it;
}
// Check if camera moved to new chunk