Fix DeltaSerializer's `GetDelta`

Fixes AppleII/C64 states sometimes crashing when a disk change actually happens
This commit is contained in:
CasualPokePlayer 2023-04-15 21:33:51 -07:00
parent ebd36f08b6
commit 2838a5412a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}