mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Feature/globals handling (#1352)
* Cleaner handling of global state * Prevent Lua memory corruption (closes #982) * Initialize glfw first thing to prevent weird joystick loading bug during startup
This commit is contained in:
@@ -94,7 +94,7 @@ void SyncAssetTask::perform(const Task::ProgressCallback& progressCallback) {
|
||||
|
||||
registerCoreClasses(scriptEngine);
|
||||
|
||||
for (OpenSpaceModule* m : global::moduleEngine.modules()) {
|
||||
for (OpenSpaceModule* m : global::moduleEngine->modules()) {
|
||||
scriptEngine.addLibrary(m->luaLibrary());
|
||||
|
||||
for (scripting::LuaLibrary& l : m->luaLibraries()) {
|
||||
|
||||
Reference in New Issue
Block a user