branchrust_reboot/main/playerinventory_allocscancel
2 Commits over 0 Days - ∞cph!
Update: PlayerInventory.CanWear no longer allocates an extra array
- BufferList.CopyFrom now clears orphaned range, to avoid holding references to managed objects
Tests: gave myself 2 maps - they correctly avoided being both on the belt
Update: pool ToArray allocation in PlayerInventory.WearItemCheck
- BufferList now can copy from List
Tests: equipped armor while wearing armor