FosterFramework / Foster

A small C# game framework
MIT License
422 stars 37 forks source link

StackList.Resize shouldn't throw when new size == capacity #87

Closed waldnercharles closed 2 months ago

waldnercharles commented 2 months ago

It seems like StackList.Resize throws an exception when Resize is called with a count == capacity. I feel like if I call StackList8.Resize(8) I should have a list with a count and capacity of 8.

NoelFB commented 2 months ago

Good call, thanks! I think this was a copy+paste issue from StackList.Add