From 36eafca98847df0dfefc960f61c5c62811bd183e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 18 Mar 2005 23:56:37 +0000 Subject: [PATCH] fix extending method tables --- stepmania/src/StepMania.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index d4afa552a1..eb130a3d05 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1135,7 +1135,10 @@ int main(int argc, char* argv[]) // UGLY: Now that all global singletons are constructed so that they, let them // all register with Lua. - LUA->RegisterTypes(); + // + // ResetState wipes out method tables. We need to call UpdateLuaGlobals, so + // we re-run scripts that may add to them. + THEME->UpdateLuaGlobals(); /* People may want to do something else while songs are loading, so do * this after loading songs. */