1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: Build issues with older standard libraries

This commit is contained in:
WerWolv 2023-09-03 11:44:48 +02:00
parent 367c4ec9c8
commit 0bbd21f25a

View File

@ -515,13 +515,14 @@ namespace hex::plugin::builtin {
workspace.dataOverlays.clear();
// Create a new overlay for each end node
for (u32 i = 0; i < workspace.endNodes.size(); i++)
for (u32 i = 0; i < workspace.endNodes.size(); i += 1)
workspace.dataOverlays.push_back(ImHexApi::Provider::get()->newOverlay());
}
// Set the current overlay of each end node to the corresponding overlay
for (auto [index, endNode] : workspace.endNodes | std::views::enumerate) {
endNode->setCurrentOverlay(workspace.dataOverlays[index]);
size_t overlayIndex = 0;
for (auto endNode : workspace.endNodes) {
endNode->setCurrentOverlay(workspace.dataOverlays[overlayIndex]);
}
// Reset any potential node errors