Commit eb31b13b authored by Rishab Arora's avatar Rishab Arora

Corrected bug which crashed KStars on stars in CC

parent 1ec2d283
......@@ -77,7 +77,7 @@ void CatalogComponent::update( KSNumbers * ) {
KStarsData *data = KStarsData::Instance();
foreach ( SkyObject *obj, m_ObjectList ) {
DeepSkyObject *dso = dynamic_cast< DeepSkyObject * >( obj );
StarObject *so = dynamic_cast< StarObject *>( so );
StarObject *so = dynamic_cast< StarObject *>( obj );
Q_ASSERT( dso || so ); // We either have stars, or deep sky objects
if( dso ) {
// Update the deep sky object if need be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment