From 92ade8fa901a7288484f73b67b01d43937ab3881 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 21 Sep 2006 03:55:22 +0000 Subject: [PATCH] reduce THEME->UpdateLuaGlobals() to LUA->RegisterTypes --- stepmania/src/StepMania.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index bca84c286d..652615b47c 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1087,10 +1087,7 @@ int main(int argc, char* argv[]) SCREENMAN = new ScreenManager; // UGLY: Now that all global singletons are constructed, let them all register with Lua. - // - // ResetState wipes out method tables. We need to call UpdateLuaGlobals, so - // we re-run scripts that may add to them. - THEME->UpdateLuaGlobals(); + LUA->RegisterTypes(); StepMania::ResetGame();