From 6dac77150a25483d89fdbc11895fe053a20f3883 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 11 Sep 2005 01:28:25 +0000 Subject: [PATCH] fix VC7 warnings --- stepmania/src/ScreenGameplayLesson.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/stepmania/src/ScreenGameplayLesson.cpp b/stepmania/src/ScreenGameplayLesson.cpp index c48c2f251d..eec190da8a 100644 --- a/stepmania/src/ScreenGameplayLesson.cpp +++ b/stepmania/src/ScreenGameplayLesson.cpp @@ -54,12 +54,6 @@ void ScreenGameplayLesson::Init() this->SortByDrawOrder(); - // Show the first lesson page - if( !m_vPages.empty() ) - { - AutoActor &aa = m_vPages[0]; - } - FOREACH( AutoActor, m_vPages, aa ) { bool bIsFirst = aa == m_vPages.begin(); @@ -158,7 +152,7 @@ void ScreenGameplayLesson::ChangeLessonPage( int iDir ) // don't change return; } - else if( m_iCurrentPageIndex + iDir >= m_vPages.size() ) + else if( m_iCurrentPageIndex + iDir >= (int)m_vPages.size() ) { m_vPages[m_iCurrentPageIndex]->PlayCommand( "Hide" ); m_iCurrentPageIndex = -1;