From 1bb3349c6e17888691375c8e6c1fa429bdc91d08 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 6 Mar 2003 01:12:27 +0000 Subject: [PATCH] fix compile problems (operator<() must be const) --- stepmania/src/Inventory.cpp | 5 +++-- stepmania/src/Inventory.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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;