This fixes random freezes when loading skins with a PlayTree control on Windows, and probably some crashes as well.
{
it = m_flat ? m_rTree.getNextLeaf( it )
: m_rTree.getNextVisibleItem( it );
- } while( it->m_deleted );
+ } while( it != m_rTree.end() && it->m_deleted );
}
}
}
do {
it = m_flat ? m_rTree.getNextLeaf( it )
: m_rTree.getNextVisibleItem( it );
- } while( it->m_deleted );
+ } while( it != m_rTree.end() && it->m_deleted );
}
stats_TimerStop( getIntf(), STATS_TIMER_SKINS_PLAYTREE_IMAGE );
}