This fixes a bug in Planet.cpp which caused crash when lowering the render distance.
As of my observations, it is fixed by this commit.
It was caused by deleting from a map which we were iterating through.
The crash is shown in this screenshot:
And this is the call stack:
ScuffedMinecraft.exe!std::_List_const_iterator<std::_List_val<std::_List_simple_types<std::pair<ChunkPos const ,ChunkData >>>>::operator++() Line 160 C++
ScuffedMinecraft.exe!std::_List_iterator<std::_List_val<std::_List_simple_types<std::pair<ChunkPos const ,ChunkData >>>>::operator++() Line 246 C++
ScuffedMinecraft.exe!Planet::ChunkThreadUpdate() Line 108 C++
This fixes a bug in Planet.cpp which caused crash when lowering the render distance. As of my observations, it is fixed by this commit. It was caused by deleting from a map which we were iterating through. The crash is shown in this screenshot: And this is the call stack: