make compile errors for commands less fatal

This commit is contained in:
Glenn Maynard
2006-09-22 18:58:00 +00:00
parent 494c3cd485
commit 6da267ae30
+2 -2
View File
@@ -481,7 +481,8 @@ apActorCommands ActorUtil::ParseActorCommands( const RString &sCommands )
RString sError;
if( !LuaHelpers::RunScript( L, sLuaFunction, "", sError, 1 ) )
{
FAIL_M( ssprintf("Compiling \"%s\": %s", sLuaFunction.c_str(), sError.c_str()) );
LOG->Warn( "Compiling \"%s\": %s", sLuaFunction.c_str(), sError.c_str() );
lua_pushnil( L );
}
/* The function is now on the stack. */
@@ -489,7 +490,6 @@ apActorCommands ActorUtil::ParseActorCommands( const RString &sCommands )
pRet->SetFromStack( L );
LUA->Release( L );
ASSERT_M( !pRet->IsNil(), sLuaFunction.c_str() );
return apActorCommands( pRet );
}