temporal: fix crash during reset_starting_at()

This commit is contained in:
Paul Davis 2022-03-23 18:03:42 -06:00
parent 857856431e
commit bf2618e97b

View file

@ -1162,14 +1162,15 @@ TempoMap::reset_starting_at (superclock_t sc)
Points::iterator pp = p;
nxt_tempo = 0;
++pp;
while (pp != _points.end()) {
++pp;
TempoPoint* nt = dynamic_cast<TempoPoint*> (&*pp);
if (nt) {
nxt_tempo = nt;
break;
}
++pp;
}
if (tp->ramped() && nxt_tempo) {