Compare commits

..

No commits in common. "nowinar/fix-for-changing-render-distance" and "main" have entirely different histories.

View File

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