diff --git a/external/vcpkg b/external/vcpkg index af752f21c..f87344cac 160000 --- a/external/vcpkg +++ b/external/vcpkg @@ -1 +1 @@ -Subproject commit af752f21c9d79ba3df9cb0250ce2233933f58486 +Subproject commit f87344cac03158cbf1467264565f1fd36b382a24 diff --git a/source/Gui/MainLoopController.cpp b/source/Gui/MainLoopController.cpp index 36c276db9..4ab0b3c3b 100644 --- a/source/Gui/MainLoopController.cpp +++ b/source/Gui/MainLoopController.cpp @@ -2,6 +2,8 @@ #include +#include + #include #include @@ -165,6 +167,11 @@ void MainLoopController::processLoadingScreen() if (requestedSimState.value() == PersisterRequestState::Error) { GenericMessageDialog::get().information("Error", "The default simulation file could not be read.\nAn empty simulation will be created."); + try { + std::filesystem::remove_all(Const::AutosavePath); + } catch (...) { + } + DeserializedSimulation deserializedSim; deserializedSim.auxiliaryData.worldSize.x = 1000; deserializedSim.auxiliaryData.worldSize.y = 500;