From 59686a46b0afcad8c5c6bb1d6f2c86bd720d41bf Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 20 Jul 2011 15:29:24 -0400 Subject: [PATCH] Fix out of bounds error. --- src/TimingData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TimingData.cpp b/src/TimingData.cpp index 8c3961c0ca..90fec98da5 100644 --- a/src/TimingData.cpp +++ b/src/TimingData.cpp @@ -139,7 +139,6 @@ void TimingData::SetStopAtRow( int iRow, float fSeconds, bool bDelay ) static_cast(stops[i])->GetDelay() == bDelay ) break; - StopSegment *ss = static_cast(stops[i]); if( i == stops.size() ) // there is no Stop/Delay Segment at the current beat { // create a new StopSegment @@ -150,6 +149,7 @@ void TimingData::SetStopAtRow( int iRow, float fSeconds, bool bDelay ) } else // StopSegment being modified is m_StopSegments[i] { + StopSegment *ss = static_cast(stops[i]); if( fSeconds > 0 ) { ss->SetPause(fSeconds);