13
0

temporal: fix logic bug in TempoMap::reset_starting_at()

This commit is contained in:
Paul Davis 2022-05-13 18:59:51 -06:00
parent c9b7f012e4
commit 4defa3ae8f

View File

@ -1184,8 +1184,8 @@ TempoMap::reset_starting_at (superclock_t sc)
tp = 0;
mp = 0;
if ((mtp = dynamic_cast<MusicTimePoint*> (&*p)) != 0) {
if ((tp = dynamic_cast<TempoPoint*> (&*p)) != 0) {
if ((mtp = dynamic_cast<MusicTimePoint*> (&*p)) == 0) {
if ((tp = dynamic_cast<TempoPoint*> (&*p)) == 0) {
mp = dynamic_cast<MeterPoint*> (&*p);
}
}