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
@@ -190,7 +190,7 @@ void LuaData::LoadFromString( const CString &s )
/* Restore the serialized data by evaluating it. */
CString sError;
if( !LUA->RunScript( s, "serialization", sError, 1 ) )
if( !LuaHelpers::RunScript( L, s, "serialization", sError, 1 ) )
{
/* Serialize() should never return an invalid script. Drop the failed
* script into the log (it may be too big to pass to FAIL_M) and fail. */