fix re-init of Lua to give singletons a chance to register after they've all been constructed

This commit is contained in:
Chris Danford
2005-02-16 00:14:43 +00:00
parent 0d8a3723ef
commit a9c2d3ae29
+1 -1
View File
@@ -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