From d9ce02123c5c46c0e85c97dc6685aac3dc3692a4 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Mon, 18 Sep 2023 10:58:08 +0200 Subject: [PATCH] Ensure itemId is never 0 --- ARDiscard/ARDiscard.csproj | 4 ++-- ARDiscard/GameData/InventoryUtils.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ARDiscard/ARDiscard.csproj b/ARDiscard/ARDiscard.csproj index 4d3f0e9..415ff1b 100644 --- a/ARDiscard/ARDiscard.csproj +++ b/ARDiscard/ARDiscard.csproj @@ -1,7 +1,7 @@ net7.0-windows - 2.2 + 2.3 11.0 enable true @@ -17,7 +17,7 @@ $(appdata)\XIVLauncher\addon\Hooks\dev\ - $(appdata)\XIVLauncher\installedPlugins\AutoRetainer\4.1.1.4\ + $(appdata)\XIVLauncher\installedPlugins\AutoRetainer\4.1.1.6\ diff --git a/ARDiscard/GameData/InventoryUtils.cs b/ARDiscard/GameData/InventoryUtils.cs index f7ee72a..ca1cce0 100644 --- a/ARDiscard/GameData/InventoryUtils.cs +++ b/ARDiscard/GameData/InventoryUtils.cs @@ -97,7 +97,7 @@ internal sealed class InventoryUtils for (int i = 0; i < container->Size; ++i) { var item = container->GetInventorySlot(i); - if (item != null) + if (item != null && item->ItemID != 0) { if (InternalConfiguration.BlacklistedItems.Contains(item->ItemID)) continue;