fix: Build issues
This commit is contained in:
parent
8531a67519
commit
d7845ec690
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user