fix assertion. PushAttrValue always pushes something; if no value,

then it pushes nil (like lua_gettable)
This commit is contained in:
Glenn Maynard
2007-02-15 11:22:25 +00:00
parent 19a65d889d
commit 5fa980a7a3
+3 -2
View File
@@ -126,11 +126,12 @@ void ActorScroller::LoadFromNode( const XNode *pNode )
ActorScroller::SetSecondsPerItem( fSecondsPerItem );
Lua *L = LUA->Get();
if( pNode->PushAttrValue(L, "TransformFunction") )
pNode->PushAttrValue( L, "TransformFunction" );
{
LuaReference ref;
ref.SetFromStack( L );
SetTransformFromReference( ref );
if( !ref.IsNil() )
SetTransformFromReference( ref );
}
LUA->Release( L );