avoid crash when stopping with "abort" set to true, but after _last_roll_location was reset to -1
This commit is contained in:
parent
05ef7f2647
commit
e588fe2057
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user