1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Build issues

This commit is contained in:
WerWolv 2024-06-07 21:57:39 +02:00
parent 8531a67519
commit d7845ec690
2 changed files with 4 additions and 4 deletions

View File

@ -279,8 +279,8 @@ namespace hex::script::loader {
}
void DotNetLoader::clearScripts() {
std::erase_if(getScripts(), [](const Script *script) {
return !script->background;
std::erase_if(getScripts(), [](const Script &script) {
return !script.background;
});
}

View File

@ -30,7 +30,7 @@ namespace {
void loadScript(std::vector<const Script*> &scripts, auto &loader) {
loader.loadAll();
for (auto &script : loader.getScripts())
for (auto &script : std::as_const(loader).getScripts())
scripts.emplace_back(&script);
}
@ -106,7 +106,7 @@ namespace {
}
for (const auto &script : scripts) {
const auto &[name, background, entryPoint, loader] = *script;
const auto &[name, path, background, entryPoint, loader] = *script;
if (background)
continue;