Fix CPU::StreamState extraScanlinesAfterNmi argument

Previously the CPU::StreamState function passed the
extraScanlinesBeforeNmi value twice to Stream().

Change the second argument to extraScanlinesAfterNmi instead.
This commit is contained in:
Ben Holley 2021-02-20 12:10:57 -06:00
parent c252d1cff8
commit 813aabb04a

View file

@ -476,7 +476,7 @@ void CPU::StreamState(bool saving)
Stream(_state.PC, _state.SP, _state.PS, _state.A, _state.X, _state.Y, _cycleCount, _state.NMIFlag,
_state.IRQFlag, _dmcDmaRunning, _spriteDmaTransfer,
extraScanlinesBeforeNmi, extraScanlinesBeforeNmi, dipSwitches,
extraScanlinesBeforeNmi, extraScanlinesAfterNmi, dipSwitches,
_needDummyRead, _needHalt, _startClockCount, _endClockCount, _ppuOffset, _masterClock,
_prevNeedNmi, _prevNmiFlag, _needNmi);