From 6da267ae30cd5327d51d966500e0b14cdcaf1e42 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Sep 2006 18:58:00 +0000 Subject: [PATCH] make compile errors for commands less fatal --- stepmania/src/ActorUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 944b51e3a8..91c4e25bae 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -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 ); }