This function is already compiled. The string value is empty. This fixes the ScreenCredits crash.

This commit is contained in:
Steve Checkoway
2007-02-13 12:55:11 +00:00
parent a95661e9c8
commit f92f1b8e4b
+8 -3
View File
@@ -125,9 +125,14 @@ void ActorScroller::LoadFromNode( const XNode *pNode )
if( pNode->GetAttrValue("SecondsPerItem", fSecondsPerItem) )
ActorScroller::SetSecondsPerItem( fSecondsPerItem );
RString sTransformFunction;
if( pNode->GetAttrValue("TransformFunction", sTransformFunction) )
ActorScroller::SetTransformFromExpression( sTransformFunction );
Lua *L = LUA->Get();
if( pNode->PushAttrValue(L, "TransformFunction") )
{
LuaReference ref;
ref.SetFromStack( L );
SetTransformFromReference( ref );
}
LUA->Release( L );
int iSubdivisions = 1;
if( pNode->GetAttrValue("Subdivisions", iSubdivisions) )