avoid crash when stopping with "abort" set to true, but after _last_roll_location was reset to -1

This commit is contained in:
Paul Davis 2021-05-08 17:28:28 -06:00
parent 05ef7f2647
commit e588fe2057

View File

@ -1397,9 +1397,10 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
* auto-return enabled
*/
_transport_sample = _last_roll_location;
do_locate = true;
if (_last_roll_location >= 0) {
_transport_sample = _last_roll_location;
do_locate = true;
}
}
}