Properly initialize GameInventoryItems

This commit is contained in:
Haselnussbomber 2025-12-13 02:19:01 +01:00
parent e100ec2abd
commit d65faafd7f
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -305,7 +305,8 @@ internal class GameInventory : IInternalDisposableService
private GameInventoryItem[] CreateItemsArray(int length)
{
var items = new GameInventoryItem[length];
items.Initialize();
foreach (ref var item in items.AsSpan())
item = new();
return items;
}