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])
|
while (index < end && orignalAsBytes[index] == currentAsBytes[index])
|
||||||
{
|
{
|
||||||
index++;
|
index++;
|
||||||
|
same++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
same = index - blockStart;
|
|
||||||
MemoryMarshal.Write(ret.Slice(retSize, 4), ref same);
|
MemoryMarshal.Write(ret.Slice(retSize, 4), ref same);
|
||||||
retSize += 4;
|
retSize += 4;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue