Use the library.

This commit is contained in:
Jason Felds
2013-05-01 21:56:25 -04:00
parent f2dbe7ccdb
commit f8315d19f2
+1 -2
View File
@@ -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;
} }