diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 1fc1041167..84af633104 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1092,10 +1092,6 @@ int main(int argc, char* argv[]) MESSAGEMAN = new MessageManager; STATSMAN = new StatsManager; - // UGLY: Now that all global singletons are constructed so that they, let them - // all register with Lua. - LUA->RegisterTypes(); - SAFE_DELETE( loading_window ); // destroy this before init'ing Display DISPLAY = CreateDisplay(); @@ -1136,6 +1132,10 @@ int main(int argc, char* argv[]) FONT = new FontManager; SCREENMAN = new ScreenManager; + // UGLY: Now that all global singletons are constructed so that they, let them + // all register with Lua. + LUA->RegisterTypes(); + /* People may want to do something else while songs are loading, so do * this after loading songs. */ if( ChangeAppPri() )