fix extending method tables

This commit is contained in:
Glenn Maynard
2005-03-18 23:56:37 +00:00
parent 80b7ba5e9b
commit 36eafca988
+4 -1
View File
@@ -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. */