This commit is contained in:
Glenn Maynard
2006-03-24 18:28:03 +00:00
parent 640896d1de
commit 84331c3d1b
+2 -2
View File
@@ -254,7 +254,7 @@ void BackgroundImpl::Unload()
void BackgroundImpl::Layer::Unload()
{
FOREACHM( BackgroundDef, Actor*, m_BGAnimations, iter )
FOREACHM( BackgroundDef, Actor*, m_BGAnimations, iter )
delete iter->second;
m_BGAnimations.clear();
m_aBGChanges.clear();
@@ -727,7 +727,7 @@ int BackgroundImpl::Layer::FindBGSegmentForBeat( float fBeat ) const
// assumption: m_aBGChanges are sorted by m_fStartBeat
int i;
for( i=m_aBGChanges.size()-1; i>=0; i-- )
for( i=m_aBGChanges.size()-1; i>=0; i-- )
{
if( fBeat >= m_aBGChanges[i].m_fStartBeat )
return i;