never mind the comparison is fine

pull/2/head
cosmonaut 2022-05-02 21:49:39 -07:00
parent 8f620c7a20
commit 91d771249e
1 changed files with 0 additions and 1 deletions

View File

@ -182,7 +182,6 @@ namespace MoonTools.ECS
{ {
ReadOnlySpan<byte> relationBytes = MemoryMarshal.Cast<Relation, byte>(relations); ReadOnlySpan<byte> relationBytes = MemoryMarshal.Cast<Relation, byte>(relations);
// FIXME: incorrect comparison
if (relationBytes.Length > state.Relations.Length) if (relationBytes.Length > state.Relations.Length)
{ {
Array.Resize(ref state.Relations, relationBytes.Length); Array.Resize(ref state.Relations, relationBytes.Length);