decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil
MIT License
4 stars 1 forks source link

FixedListExtension - Fix RemoveSwapBack #214

Closed mbaker3 closed 1 year ago

mbaker3 commented 1 year ago

RemoveSwapBack was taking in a readonly reference (in) which was making a local copy rather than modifying the collection as intended.

What is the current behaviour?

Calling RemoveSwapBack will do the work but on a copy of the collection so the caller won't actually receive the change.

What is the new behaviour?

RemoveSwapBack correctly modifies the original collection by receiving a ref reference.

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?