Fixed the non-const definition of the TimingData::GetSegmentAtRow() function,

which was missing the class specifier and casting the data wrong.
This commit is contained in:
Shenjoku
2013-04-22 22:20:40 -07:00
parent 0c4fe367cc
commit b59d3e9a8f
+2 -2
View File
@@ -342,9 +342,9 @@ const TimingSegment* TimingData::GetSegmentAtRow( int iNoteRow, TimingSegmentTyp
FAIL_M("Could not find timing segment for row");
}
TimingSegment* GetSegmentAtRow( int iNoteRow, TimingSegmentType tst )
TimingSegment* TimingData::GetSegmentAtRow( int iNoteRow, TimingSegmentType tst )
{
return const_cast<TimingSegment*>( GetSegmentAtRow(iNoteRow, tst) );
return const_cast<TimingSegment*>( static_cast<const TimingData*>(this)->GetSegmentAtRow(iNoteRow, tst) );
}
static void EraseSegment( vector<TimingSegment*> &vSegs, int index, TimingSegment *cur )