From 2de92689949fd1e5c0385a88edce6d781f609a7f Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Thu, 20 Jul 2023 00:57:00 +0200 Subject: [PATCH] Fix issue where LoadEquipment is called on setting up the game object and thus unintendedly overwriting changes. --- Glamourer/State/StateListener.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Glamourer/State/StateListener.cs b/Glamourer/State/StateListener.cs index ebf7083..0a6e859 100644 --- a/Glamourer/State/StateListener.cs +++ b/Glamourer/State/StateListener.cs @@ -169,7 +169,7 @@ public class StateListener : IDisposable /// private void OnEquipmentLoading(Actor actor, EquipSlot slot, CharacterArmor armor) { - if (armor != actor.GetArmor(slot)) + if (!actor.Model.Valid || armor != actor.GetArmor(slot)) return; if (!actor.Identifier(_actors.AwaitedService, out var identifier)