diff --git a/Glamourer/State/FunModule.cs b/Glamourer/State/FunModule.cs index c92993d..0bbbe49 100644 --- a/Glamourer/State/FunModule.cs +++ b/Glamourer/State/FunModule.cs @@ -92,7 +92,7 @@ public unsafe class FunModule : IDisposable public void ApplyFun(Actor actor, ref CharacterArmor armor, EquipSlot slot) { - if (actor.AsObject->ObjectKind is not (byte)ObjectKind.Player || !actor.IsCharacter) + if (!actor.IsCharacter || actor.AsObject->ObjectKind is not (byte)ObjectKind.Player) return; if (actor.AsCharacter->CharacterData.ModelCharaId != 0) @@ -104,7 +104,7 @@ public unsafe class FunModule : IDisposable public void ApplyFun(Actor actor, Span armor, ref Customize customize) { - if (actor.AsObject->ObjectKind is not (byte)ObjectKind.Player || !actor.IsCharacter) + if (!actor.IsCharacter || actor.AsObject->ObjectKind is not (byte)ObjectKind.Player) return; if (actor.AsCharacter->CharacterData.ModelCharaId != 0) @@ -132,7 +132,7 @@ public unsafe class FunModule : IDisposable public void ApplyFun(Actor actor, ref CharacterWeapon weapon, EquipSlot slot) { - if (actor.AsObject->ObjectKind is not (byte)ObjectKind.Player || !actor.IsCharacter) + if (!actor.IsCharacter || actor.AsObject->ObjectKind is not (byte)ObjectKind.Player) return; if (actor.AsCharacter->CharacterData.ModelCharaId != 0)