Fix issue with accessory vfx hook.

This commit is contained in:
Ottermandias 2024-06-02 12:09:05 +02:00
parent 05d010a281
commit b63935e81e

View file

@ -182,7 +182,7 @@ public sealed unsafe class ResolvePathHooksBase : IDisposable
private nint ResolveVfxHuman(nint drawObject, nint pathBuffer, nint pathBufferSize, uint slotIndex, nint unkOutParam)
{
if (slotIndex <= 4)
if (slotIndex is <= 4 or >= 10)
return ResolveVfx(drawObject, pathBuffer, pathBufferSize, slotIndex, unkOutParam);
var changedEquipData = ((Human*)drawObject)->ChangedEquipData;