fix AV if 0 choices in row

This commit is contained in:
Chris Danford
2005-03-21 03:02:00 +00:00
parent 348cf4d15c
commit 9dff2c6308
+2
View File
@@ -699,6 +699,8 @@ int OptionRow::GetOneSharedSelection( bool bAllowFail ) const
void OptionRow::SetOneSelection( PlayerNumber pn, int iChoice )
{
if( m_vbSelected[pn].empty() )
return;
for( unsigned i=0; i<(unsigned)m_vbSelected[pn].size(); i++ )
m_vbSelected[pn][i] = false;
m_vbSelected[pn][iChoice] = true;