allow set TargetNumber in XML

This commit is contained in:
Chris Danford
2005-02-15 21:53:17 +00:00
parent 3ccb1f7e01
commit d76d94e64e
+4
View File
@@ -25,6 +25,10 @@ void RollingNumbers::LoadFromNode( const CString& sDir, const XNode* pNode )
pNode->GetAttrValue( "Format", m_sFormat );
pNode->GetAttrValue( "ApproachSeconds", m_fApproachSeconds );
int iTargetNumber;
if( pNode->GetAttrValue( "TargetNumber", iTargetNumber ) )
SetTargetNumber( iTargetNumber );
UpdateText();
}