lock for consistency

This commit is contained in:
Glenn Maynard
2006-10-14 20:37:30 +00:00
parent 89b435ef51
commit 48d3733296
+4
View File
@@ -210,6 +210,8 @@ void LuaManager::Release( Lua *&p )
void LuaManager::RegisterTypes()
{
Lua *L = LUA->Get();
for( const LuaFunctionList *p = g_LuaFunctions; p; p=p->next )
lua_register( L, p->name, p->func );
@@ -221,6 +223,8 @@ void LuaManager::RegisterTypes()
fn( L );
}
}
LUA->Release( L );
}