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
@@ -146,7 +146,7 @@ bool LuaReference::SetFromExpression( const RString &sExpression )
Lua *L = LUA->Get();
bool bSuccess = LuaHelpers::RunScript(L, sFullExpression, "expression", 1);
bool bSuccess = LuaHelpers::RunScript(L, sFullExpression, "", 1);
if( !bSuccess )
this->SetFromNil();
else