Properly initialize GameInventoryItems (#2504)
Some checks failed
Build Dalamud / Build on Windows (push) Waiting to run
Build Dalamud / Check API Compatibility (push) Blocked by required conditions
Build Dalamud / Deploy dalamud-distrib staging (push) Blocked by required conditions
Rollup changes to next version / check (api14) (push) Failing after 20s
Tag Build / Tag Build (push) Successful in 5s

This commit is contained in:
Haselnussbomber 2025-12-13 05:05:03 +01:00 committed by GitHub
parent e100ec2abd
commit 2d096d9b33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}