set function directly

This commit is contained in:
Glenn Maynard
2007-05-23 19:58:46 +00:00
parent 4c65d1f9be
commit 95628c741b
+6 -3
View File
@@ -31,9 +31,12 @@ void DynamicActorScroller::LoadFromNode( const XNode *pNode )
this->AddChild( pCopy );
}
RString sLoadFunction;
pNode->GetAttrValue( "LoadFunction", sLoadFunction );
m_LoadFunction.SetFromExpression( sLoadFunction );
{
Lua *L = LUA->Get();
pNode->PushAttrValue( L, "LoadFunction" );
m_LoadFunction.SetFromStack( L );
LUA->Release(L);
}
/* Call the expression with line = nil to find out the number of lines. */
{