Fix last access modifier

This commit is contained in:
Matt Nadareski
2021-07-05 16:30:38 -07:00
parent 32a686d4d1
commit bd159b95a5
4 changed files with 11 additions and 6 deletions

View File

@@ -251,7 +251,7 @@ namespace RedBookPlayer.Common.Hardware
_currentSectorReadPosition += count;
if(_currentSectorReadPosition >= _opticalDisc.BytesPerSector)
{
_opticalDisc.CurrentSector += (ulong)(_currentSectorReadPosition / _opticalDisc.BytesPerSector);
_opticalDisc.SetCurrentSector(_opticalDisc.CurrentSector + (ulong)(_currentSectorReadPosition / _opticalDisc.BytesPerSector));
_currentSectorReadPosition %= _opticalDisc.BytesPerSector;
}