[ScreenOptionsEditCourse] Fixed a crash when going to the first row. (Fixes issue 235)

This commit is contained in:
AJ Kelly
2011-04-23 16:59:38 -05:00
parent d7ba852eaf
commit 62815d8f58
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -447,8 +447,13 @@ void ScreenOptionsEditCourse::AfterChangeRow( PlayerNumber pn )
{
ScreenOptions::AfterChangeRow( pn );
SetCurrentSong();
SetCurrentSteps();
const int iCurRow = m_iCurrentRow[pn];
// only do this if it's not the first row. -aj
if( iCurRow > 0 )
{
SetCurrentSong();
SetCurrentSteps();
}
}
void ScreenOptionsEditCourse::AfterChangeValueInRow( int iRow, PlayerNumber pn )