The usual complaint about ISO 'for' scoping from GCC, blah blah

This commit is contained in:
Ben Anderson
2003-09-22 00:41:38 +00:00
parent a316e1cfa1
commit 2a58216a94
+2 -1
View File
@@ -45,7 +45,8 @@ ScreenSelectDifficulty::ScreenSelectDifficulty() : ScreenSelect( "ScreenSelectDi
m_bChosen[p] = false;
}
for( unsigned c=0; c<m_aModeChoices.size(); c++ )
unsigned c; // GCC is bitching again.
for( c=0; c<m_aModeChoices.size(); c++ )
{
if( (int)c < NUM_CHOICES_ON_PAGE_1 )
m_ModeChoices[PAGE_1].push_back( m_aModeChoices[c] );