mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 17:09:17 +01:00
Properly initialize GameInventoryItems (#2504)
Some checks failed
Rollup changes to next version / check (api14) (push) Failing after 20s
Tag Build / Tag Build (push) Successful in 5s
Build Dalamud / Build on Windows (push) Has been cancelled
Build Dalamud / Check API Compatibility (push) Has been cancelled
Build Dalamud / Deploy dalamud-distrib staging (push) Has been cancelled
Some checks failed
Rollup changes to next version / check (api14) (push) Failing after 20s
Tag Build / Tag Build (push) Successful in 5s
Build Dalamud / Build on Windows (push) Has been cancelled
Build Dalamud / Check API Compatibility (push) Has been cancelled
Build Dalamud / Deploy dalamud-distrib staging (push) Has been cancelled
This commit is contained in:
parent
e100ec2abd
commit
2d096d9b33
1 changed files with 2 additions and 1 deletions
|
|
@ -305,7 +305,8 @@ internal class GameInventory : IInternalDisposableService
|
||||||
private GameInventoryItem[] CreateItemsArray(int length)
|
private GameInventoryItem[] CreateItemsArray(int length)
|
||||||
{
|
{
|
||||||
var items = new GameInventoryItem[length];
|
var items = new GameInventoryItem[length];
|
||||||
items.Initialize();
|
foreach (ref var item in items.AsSpan())
|
||||||
|
item = new();
|
||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue