mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Add Null-Check to fun application.
This commit is contained in:
parent
3aa4355c5f
commit
40bb446d02
1 changed files with 3 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ public unsafe class FunModule : IDisposable
|
||||||
|
|
||||||
public void ApplyFun(Actor actor, ref CharacterArmor armor, EquipSlot slot)
|
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;
|
return;
|
||||||
|
|
||||||
if (actor.AsCharacter->CharacterData.ModelCharaId != 0)
|
if (actor.AsCharacter->CharacterData.ModelCharaId != 0)
|
||||||
|
|
@ -104,7 +104,7 @@ public unsafe class FunModule : IDisposable
|
||||||
|
|
||||||
public void ApplyFun(Actor actor, Span<CharacterArmor> armor, ref Customize customize)
|
public void ApplyFun(Actor actor, Span<CharacterArmor> 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;
|
return;
|
||||||
|
|
||||||
if (actor.AsCharacter->CharacterData.ModelCharaId != 0)
|
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)
|
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;
|
return;
|
||||||
|
|
||||||
if (actor.AsCharacter->CharacterData.ModelCharaId != 0)
|
if (actor.AsCharacter->CharacterData.ModelCharaId != 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue