fix error handling

This commit is contained in:
Glenn Maynard
2007-02-20 00:33:09 +00:00
parent 00c3a91989
commit 94619a7607
+3 -1
View File
@@ -985,7 +985,9 @@ void Actor::RunCommands( const LuaReference& cmds, const LuaReference *pParamTab
pParamTable->PushSelf( L );
// call function with 2 arguments and 0 results
lua_call( L, 2, 0 );
RString sError;
if( !LuaHelpers::RunScriptOnStack(L, sError, 2, 0) )
LOG->Warn( "Error playing command: %s", sError.c_str() );
LUA->Release(L);
}