Fix DeltaSerializer's `GetDelta`
Fixes AppleII/C64 states sometimes crashing when a disk change actually happens
This commit is contained in:
parent
ebd36f08b6
commit
2838a5412a
|
@ -91,10 +91,10 @@ namespace BizHawk.Common
|
|||
while (index < end && orignalAsBytes[index] == currentAsBytes[index])
|
||||
{
|
||||
index++;
|
||||
same++;
|
||||
}
|
||||
}
|
||||
|
||||
same = index - blockStart;
|
||||
MemoryMarshal.Write(ret.Slice(retSize, 4), ref same);
|
||||
retSize += 4;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue