ModernUO/Projects/Server/Collections
Kamron Batman d919f71149
fix: Fixes map iterators for Items (#1564)
### Summary

Modifying a ValueLinkList using one of the methods will bump the "version". This field is used by iterators (foreach loops) to determine if the link list was modified while iterating. The sector.Items (and in the future other lists), will no longer be safe to modify while iterating. The server will _CRASH_ if the ValueLinkList is modified.

Thanks to @stefanomerotta for help!


### Screenshots
<img width="588" alt="image" src="https://github.com/modernuo/ModernUO/assets/3953314/83ee0b6e-ff4f-4768-9e29-84456e04b1ec">
2023-10-26 17:49:15 -07:00
..
ArrayEnumerator.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
BitArray.cs fix: Fixes BitArray serialization (#1027) 2022-05-18 17:25:03 -07:00
CollectionHelpers.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
CollectionThrowStrings.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
HashHelpers.cs fix: Cleans up core code (#1187) 2022-10-10 21:47:08 -07:00
OrderedHashSet.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
PooledOrderedHashSet.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
PooledRefList.cs fix: Fixes pooled ref list resizing (#1169) 2022-09-12 09:06:50 -07:00
PooledRefQueue.cs feat: Adds .NET 7 & Arm64 support (#1229) 2022-11-06 09:59:11 -08:00
ValueLinkList.cs fix: Fixes map iterators for Items (#1564) 2023-10-26 17:49:15 -07:00