don't assert if no rows enabled (editor help screen)

This commit is contained in:
Chris Danford
2006-03-01 22:06:31 +00:00
parent 42b2ba7e9b
commit e13bd85d5b
+4
View File
@@ -950,6 +950,10 @@ void ScreenOptions::StoreFocus( PlayerNumber pn )
RString ScreenOptions::GetNextScreenForSelection( PlayerNumber pn ) const
{
int iCurRow = this->GetCurrentRow( pn );
if( iCurRow == -1 )
return RString();
ASSERT( iCurRow >= 0 && iCurRow < (int)m_pRows.size() );
const OptionRow *pRow = m_pRows[iCurRow];