1
0
mirror of synced 2025-02-20 04:01:01 +01:00

nodes: Properly reset data overlays when errors occurred

This commit is contained in:
WerWolv 2021-03-21 14:52:21 +01:00
parent ce22028781
commit 2c3a6d38ab

View File

@ -125,6 +125,11 @@ namespace hex {
}
} catch (dp::Node::NodeError &e) {
this->m_currNodeError = e;
for (auto overlay : this->m_dataOverlays)
SharedData::currentProvider->deleteOverlay(overlay);
this->m_dataOverlays.clear();
} catch (std::runtime_error &e) {
printf("Node implementation bug! %s\n", e.what());
}