RunScript cleanup, default to 0 return values
This commit is contained in:
@@ -119,7 +119,7 @@ void LuaExpression::SetFromExpression( const CString &sExpression )
|
||||
|
||||
void LuaExpression::Register()
|
||||
{
|
||||
if( !LUA->RunScript( m_sExpression ) )
|
||||
if( !LUA->RunScript( m_sExpression, "expression", 1 ) )
|
||||
{
|
||||
this->SetFromNil();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user