fix: Fixes missing reader seek for switches in gump response (#1700)
This commit is contained in:
parent
76f132fd49
commit
1147a80b34
1 changed files with 5 additions and 1 deletions
|
|
@ -411,9 +411,13 @@ public static class IncomingPlayerPackets
|
|||
return;
|
||||
}
|
||||
|
||||
int switchByteCount = switchCount * 4;
|
||||
|
||||
// Read in all of the integers
|
||||
ReadOnlySpan<int> switchBlock =
|
||||
MemoryMarshal.Cast<byte, int>(reader.Buffer.Slice(reader.Position, switchCount * 4));
|
||||
MemoryMarshal.Cast<byte, int>(reader.Buffer.Slice(reader.Position, switchByteCount));
|
||||
|
||||
reader.Seek(switchByteCount, SeekOrigin.Current);
|
||||
|
||||
scoped ReadOnlySpan<int> switches;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue