ZXHawk: Fix exception thrown randomly by tape player subsystem
This commit is contained in:
parent
0621db4585
commit
3766e2380c
|
@ -624,9 +624,8 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
}
|
||||
}
|
||||
|
||||
// update waitEdge with current position within the current block
|
||||
_waitEdge = _dataBlocks[_currentDataBlockIndex].DataPeriods[_position];
|
||||
|
||||
// update waitEdge with current position within the current block
|
||||
_waitEdge = _dataBlocks[_currentDataBlockIndex].DataPeriods.Count() > 0 ? _dataBlocks[_currentDataBlockIndex].DataPeriods[_position] : 0;
|
||||
// flip the current state
|
||||
FlipTapeState();
|
||||
|
||||
|
|
Loading…
Reference in New Issue