don't specify a dummy name for the expression, so RunScript

shows useful error messages
This commit is contained in:
Glenn Maynard
2006-09-22 04:25:38 +00:00
parent 53c831701d
commit 6f1dbf32d5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -481,7 +481,7 @@ apActorCommands ActorUtil::ParseActorCommands( const RString &sCommands )
LuaReference *pRet = new LuaReference;
RString sError;
if( !LuaHelpers::RunScript( L, sLuaFunction, "in", sError, 1 ) )
if( !LuaHelpers::RunScript( L, sLuaFunction, "", sError, 1 ) )
{
FAIL_M( ssprintf("Compiling \"%s\": %s", sLuaFunction.c_str(), sError.c_str()) );
}