mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-25 22:21:49 +01:00
Properly initialize GameInventoryItems
This commit is contained in:
parent
e100ec2abd
commit
d65faafd7f
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