lock for consistency
This commit is contained in:
@@ -210,6 +210,8 @@ void LuaManager::Release( Lua *&p )
|
|||||||
|
|
||||||
void LuaManager::RegisterTypes()
|
void LuaManager::RegisterTypes()
|
||||||
{
|
{
|
||||||
|
Lua *L = LUA->Get();
|
||||||
|
|
||||||
for( const LuaFunctionList *p = g_LuaFunctions; p; p=p->next )
|
for( const LuaFunctionList *p = g_LuaFunctions; p; p=p->next )
|
||||||
lua_register( L, p->name, p->func );
|
lua_register( L, p->name, p->func );
|
||||||
|
|
||||||
@@ -221,6 +223,8 @@ void LuaManager::RegisterTypes()
|
|||||||
fn( L );
|
fn( L );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LUA->Release( L );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user