From cf5e658c0085d91bf03fa2cb00b30b4e39c97213 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 4 Dec 2005 09:00:33 +0000 Subject: [PATCH] fix crash if 0 rows --- stepmania/src/ScreenOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index 48f14b0364..9a64ad7f00 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -661,7 +661,7 @@ void ScreenOptions::PositionRows() vector Rows( m_pRows ); OptionRow *ExitRow = NULL; - if( (bool)SEPARATE_EXIT_ROW && Rows.back()->GetRowType() == OptionRow::ROW_EXIT ) + if( (bool)SEPARATE_EXIT_ROW && !Rows.empty() && Rows.back()->GetRowType() == OptionRow::ROW_EXIT ) { ExitRow = &*Rows.back();