fix assert if P2 doesn't match any options and P1 is active

This commit is contained in:
Glenn Maynard
2006-03-24 18:16:28 +00:00
parent 5e6a988c06
commit c7b6b038c5
+3 -3
View File
@@ -158,14 +158,14 @@ public:
}
void ImportOption( const vector<PlayerNumber> &vpns, vector<bool> vbSelectedOut[NUM_PLAYERS] ) const
{
int iFallbackOption = -1;
bool bUseFallbackOption = true;
FOREACH_CONST( PlayerNumber, vpns, pn )
{
PlayerNumber p = *pn;
vector<bool> &vbSelOut = vbSelectedOut[p];
int iFallbackOption = -1;
bool bUseFallbackOption = true;
for( unsigned e = 0; e < m_aListEntries.size(); ++e )
{
const GameCommand &mc = m_aListEntries[e];