mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-15 16:31:06 -06:00
Correctly load and pop scripts
This commit is contained in:
@@ -654,13 +654,12 @@ void ScriptEngine::postSynchronizationPreDraw() {
|
||||
|
||||
while (!scripts.empty()) {
|
||||
try {
|
||||
const std::string& script = scripts.back();
|
||||
scripts.pop_back();
|
||||
runScript(script);
|
||||
runScript(scripts.back());
|
||||
}
|
||||
catch (const ghoul::RuntimeError& e) {
|
||||
LERRORC(e.component, e.message);
|
||||
}
|
||||
scripts.pop_back();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user