diff --git a/KitchenSink/Commands/GlamourSetter.cs b/KitchenSink/Commands/GlamourSetter.cs index 8f51090..c2ebc46 100644 --- a/KitchenSink/Commands/GlamourSetter.cs +++ b/KitchenSink/Commands/GlamourSetter.cs @@ -431,6 +431,9 @@ internal sealed class GlamourSetter : Window, IDisposable foreach (var inventoryType in _inventoryTypes) { var inventoryContainer = inventoryManager->GetInventoryContainer(inventoryType); + if (inventoryContainer == null) + continue; + for (int i = 0; i < inventoryContainer->Size; ++i) { InventoryItem* item = inventoryContainer->GetInventorySlot(i); diff --git a/KitchenSink/KitchenSink.csproj b/KitchenSink/KitchenSink.csproj index 320d82c..0079d10 100644 --- a/KitchenSink/KitchenSink.csproj +++ b/KitchenSink/KitchenSink.csproj @@ -1,6 +1,6 @@  - 2.2 + 2.3 dist