13
0

Fix find_next_event return value in case no music-time event is found

This commit is contained in:
Robin Gareus 2023-10-04 21:20:40 +02:00
parent 0c3791117c
commit 7f2637fa96
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -688,7 +688,7 @@ Automatable::find_next_event (timepos_t const & start, timepos_t const & end, Ev
} }
} }
} }
return next_event.when != (start <= end ? timepos_t::max (start.time_domain()) : timepos_t (start.time_domain())); return next_event.when != (start <= end ? timepos_t::max (next_event.when.time_domain ()) : timepos_t (next_event.when.time_domain ()));
} }
void void