Commit 99a19d27 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

KIWAY::Player() wxASSERT

parent 59d7303b
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -241,17 +241,18 @@ KIWAY_PLAYER* KIWAY::Player( FRAME_T aFrameType, bool doCreate )
    if( doCreate )
    {
        FACE_T face_type = KifaceType( aFrameType );

        wxASSERT( face_type != FACE_T(-1) );

        KIFACE* kiface = KiFACE( face_type );

        wxASSERT( kiface );

        if( kiface )
        {
            KIWAY_PLAYER* frame = (KIWAY_PLAYER*) kiface->CreateWindow( m_top, aFrameType, this, KFCTL_PROJECT_SUITE );

            return m_player[aFrameType] = frame;
        }
    }

    return NULL;
}