minor stuff

This commit is contained in:
2023-12-31 12:15:30 +02:00
parent 63d14ce2a9
commit dd5a86a8b7
5 changed files with 236 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ namespace Game
Span<byte> bytes = stackalloc byte[Unsafe.SizeOf<PlayerInputState>()];
foreach (ref PlayerInputState state in CollectionsMarshal.AsSpan(buffer))
{
MemoryMarshal.Write(bytes, ref state);
MemoryMarshal.Write(bytes, state);
demoStream.Write(bytes);
}