fix "try to add NULL child"

This commit is contained in:
Chris Danford
2005-02-26 12:54:35 +00:00
parent 266d4e7d1c
commit 0eebc28ab6
+1 -2
View File
@@ -20,11 +20,10 @@ void MeterDisplay::Load( CString sStreamPath, float fStreamWidth, CString sTipPa
m_sprStream.Load( sStreamPath );
m_sprStream.SetZoomX( fStreamWidth / m_sprStream.GetUnzoomedWidth() );
this->AddChild( &m_sprStream );
this->AddChild( m_sprTip );
m_sprTip.Load( sTipPath );
this->AddChild( m_sprTip );
SetPercent( 0.5f );
}