RunScript cleanup, default to 0 return values

This commit is contained in:
Glenn Maynard
2005-02-22 01:21:38 +00:00
parent 1a58675664
commit baf8ef940e
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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;