Use the library.
This commit is contained in:
+1
-2
@@ -707,8 +707,7 @@ void OptionRow::SetOneSelection( PlayerNumber pn, int iChoice )
|
|||||||
vector<bool> &vb = m_vbSelected[pn];
|
vector<bool> &vb = m_vbSelected[pn];
|
||||||
if( vb.empty() )
|
if( vb.empty() )
|
||||||
return;
|
return;
|
||||||
FOREACH( bool, vb, b )
|
std::fill_n(vb.begin(), vb.size(), false);
|
||||||
*b = false;
|
|
||||||
vb[iChoice] = true;
|
vb[iChoice] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user