From a9c2d3ae29a540bc519aa8e6de82c48354948749 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 16 Feb 2005 00:14:43 +0000 Subject: [PATCH] fix re-init of Lua to give singletons a chance to register after they've all been constructed --- stepmania/src/StepMania.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 8419d9cdd0..c303971e8d 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1091,7 +1091,7 @@ int main(int argc, char* argv[]) // UGLY: Reload the current theme now that all global singletons are // constructed so that they can be registered with Lua. - THEME->SwitchThemeAndLanguage( THEME->GetCurThemeName(), THEME->GetCurLanguage() ); + THEME->UpdateLuaGlobals(); SAFE_DELETE( loading_window ); // destroy this before init'ing Display