Fix not all armoury items being discarded
This commit is contained in:
parent
5db9c5e6fb
commit
fc774aa124
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<Version>4.4</Version>
|
||||
<Version>4.5</Version>
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
|
@ -82,13 +82,14 @@ internal sealed class InventoryUtils
|
||||
private unsafe IEnumerable<ItemWrapper> GetArmouryItemsToDiscard(bool condition, InventoryManager* inventoryManager,
|
||||
InventoryType[] inventoryTypes, Dictionary<uint, uint> itemCounts, List<uint>? gearsetItems)
|
||||
{
|
||||
List<ItemWrapper> items = new();
|
||||
if (condition)
|
||||
{
|
||||
foreach (InventoryType inventoryType in inventoryTypes)
|
||||
return GetItemsToDiscard(inventoryManager, inventoryType, itemCounts, gearsetItems);
|
||||
items.AddRange(GetItemsToDiscard(inventoryManager, inventoryType, itemCounts, gearsetItems));
|
||||
}
|
||||
|
||||
return new List<ItemWrapper>();
|
||||
return items;
|
||||
}
|
||||
|
||||
public unsafe InventoryItem* GetNextItemToDiscard(ItemFilter? itemFilter)
|
||||
|
Loading…
Reference in New Issue
Block a user