diff --git a/stepmania/src/Inventory.cpp b/stepmania/src/Inventory.cpp index b978742cba..07191adc09 100644 --- a/stepmania/src/Inventory.cpp +++ b/stepmania/src/Inventory.cpp @@ -81,7 +81,8 @@ bool Inventory::OnComboBroken( PlayerNumber pn, int iCombo ) int* iItems = GAMESTATE->m_iItems[pn]; // search for the item acquired - for( int item=0; item<(int)m_ItemDefs.size(); item++ ) + int item; + for( item=0; item<(int)m_ItemDefs.size(); item++ ) if( m_ItemDefs[item].comboLevel > iCombo ) break; @@ -177,4 +178,4 @@ void Inventory::RemoveAllActiveItems() { for( int p=0; p& items ) { sort( items.begin(), items.end() ); } }; vector m_ItemDefs;