From 1630bdf9a44001d154e40a094b5cdd5bbea363a8 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Mon, 23 Dec 2024 21:09:43 +0100 Subject: [PATCH] Fix glamour set UI breaking when in instanced content --- KitchenSink/Commands/GlamourSetter.cs | 3 +++ KitchenSink/KitchenSink.csproj | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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