mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 01:41:29 -06:00
Let the module registration script return a lambda that will contain all modules, thus removing the static initialization order problem
This commit is contained in:
@@ -40,7 +40,7 @@ namespace {
|
||||
namespace openspace {
|
||||
|
||||
void ModuleEngine::initialize() {
|
||||
for (OpenSpaceModule* m : AllModules)
|
||||
for (OpenSpaceModule* m : AllModules())
|
||||
registerModule(std::unique_ptr<OpenSpaceModule>(m));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user