const fix

This commit is contained in:
Glenn Maynard
2004-01-13 07:06:46 +00:00
parent 651e590200
commit 628fafdcf2
+2 -2
View File
@@ -126,7 +126,7 @@ protected:
// Only one will true at a time if m_RowDef.bMultiSelect
vector<bool> m_vbSelected[NUM_PLAYERS]; // size = m_RowDef.choices.size().
int GetOneSelection( PlayerNumber pn )
int GetOneSelection( PlayerNumber pn ) const
{
for( unsigned i=0; i<(unsigned)m_vbSelected[pn].size(); i++ )
if( m_vbSelected[pn][i] )
@@ -134,7 +134,7 @@ protected:
ASSERT(0); // shouldn't call this if not expecting one to be selected
return -1;
}
int GetOneSharedSelection()
int GetOneSharedSelection() const
{
return GetOneSelection( (PlayerNumber)0 );
}