Fix issue where LoadEquipment is called on setting up the game object and thus unintendedly overwriting changes.

This commit is contained in:
Ottermandias 2023-07-20 00:57:00 +02:00
parent 42d8709f08
commit 2de9268994

View file

@ -169,7 +169,7 @@ public class StateListener : IDisposable
/// </summary> /// </summary>
private void OnEquipmentLoading(Actor actor, EquipSlot slot, CharacterArmor armor) private void OnEquipmentLoading(Actor actor, EquipSlot slot, CharacterArmor armor)
{ {
if (armor != actor.GetArmor(slot)) if (!actor.Model.Valid || armor != actor.GetArmor(slot))
return; return;
if (!actor.Identifier(_actors.AwaitedService, out var identifier) if (!actor.Identifier(_actors.AwaitedService, out var identifier)