diff --git a/src/TimingData.h b/src/TimingData.h index d169226637..9c85d67087 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -529,7 +529,7 @@ public: * @param fBeat the beat that has a BPMSegment. * @return the BPMSegment in question. */ - BPMSegment& GetBPMSegmentAtBeat( float fBeat ) { return GetBPMSegmentAtRow( BeatToNoteRow(fBeat)); } + BPMSegment& GetBPMSegmentAtBeat( float fBeat ) { return GetBPMSegmentAtRow( (int)BeatToNoteRow(fBeat)); } /** * @brief Retrieve the index of the BPMSegments at the specified row. * @param iNoteRow the row that has a BPMSegment.