LuaManager::RunScript -> LuaHelpers::RunScript.

(Functions in LuaManager can accidentally bypass locking semantics, so
they should be kept to a minimum.)
This commit is contained in:
Glenn Maynard
2005-06-16 06:00:39 +00:00
parent f070624a91
commit fc16f2625d
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ void ActorCommands::Register()
Lua *L = LUA->Get();
CString sError;
if( !LUA->RunScript( m_sLuaFunction, "in", sError, 1 ) )
if( !LuaHelpers::RunScript( L, m_sLuaFunction, "in", sError, 1 ) )
{
FAIL_M( ssprintf("Compiling \"%s\": %s", m_sLuaFunction.c_str(), sError.c_str()) );
}