always have at least one choice in a row

This commit is contained in:
Chris Danford
2006-01-19 03:02:02 +00:00
parent a2c12bdc61
commit e080d73fbb
+5
View File
@@ -73,6 +73,11 @@ void ScreenMiniMenu::LoadMenu( const MenuDef* pDef )
pHand->m_Def.m_bExportOnChange = false;
pHand->m_Def.m_vsChoices = mr.choices;
// Each row must have at least one choice.
if( pHand->m_Def.m_vsChoices.empty() )
pHand->m_Def.m_vsChoices.push_back( "" );
pHand->m_Def.m_bAllowThemeItems = mr.bThemeItems;
FOREACH( CString, pHand->m_Def.m_vsChoices, c )