diff --git a/src/nostalgia/modules/keelmodules.cpp b/src/nostalgia/modules/keelmodules.cpp index cff29958..b1fcbf22 100644 --- a/src/nostalgia/modules/keelmodules.cpp +++ b/src/nostalgia/modules/keelmodules.cpp @@ -2,8 +2,6 @@ * Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved. */ -#include - #include #include @@ -14,9 +12,9 @@ void registerKeelModules() noexcept { if (modulesRegistered) { return; } + modulesRegistered = true; keel::registerModule(core::keelModule()); keel::registerModule(scene::keelModule()); - modulesRegistered = true; } } diff --git a/src/nostalgia/modules/studiomodules.cpp b/src/nostalgia/modules/studiomodules.cpp index e376d67c..2a76f4b1 100644 --- a/src/nostalgia/modules/studiomodules.cpp +++ b/src/nostalgia/modules/studiomodules.cpp @@ -16,9 +16,9 @@ void registerStudioModules() noexcept { if (modulesRegistered) { return; } + modulesRegistered = true; studio::registerModule(core::studioModule()); studio::registerModule(scene::studioModule()); - modulesRegistered = true; } }