don't specify a dummy name for the expression, so RunScript
shows useful error messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user