Fix function type for CalculateHeight.

This commit is contained in:
Ottermandias 2023-09-22 16:02:29 +02:00
parent 074fce1268
commit 046879982b

View file

@ -29,7 +29,7 @@ public unsafe class ScalingService : IDisposable
private delegate void SetupMount(Character.MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4); private delegate void SetupMount(Character.MountContainer* container, short mountId, uint unk1, uint unk2, uint unk3, byte unk4);
private delegate void SetupOrnament(Ornament* ornament, uint* unk1, float* unk2); private delegate void SetupOrnament(Ornament* ornament, uint* unk1, float* unk2);
private delegate ulong CalculateHeight(Character* character); private delegate float CalculateHeight(Character* character);
[Signature("E8 ?? ?? ?? ?? 48 8B 43 ?? 80 B8 ?? ?? ?? ?? ?? 74 ?? 0F B6 90", DetourName = nameof(SetupMountDetour))] [Signature("E8 ?? ?? ?? ?? 48 8B 43 ?? 80 B8 ?? ?? ?? ?? ?? 74 ?? 0F B6 90", DetourName = nameof(SetupMountDetour))]
private readonly Hook<SetupMount> _setupMountHook = null!; private readonly Hook<SetupMount> _setupMountHook = null!;
@ -66,7 +66,7 @@ public unsafe class ScalingService : IDisposable
SetScaleCustomize(character, race, clan, gender); SetScaleCustomize(character, race, clan, gender);
} }
private ulong CalculateHeightDetour(Character* character) private float CalculateHeightDetour(Character* character)
{ {
var (gender, bodyType, clan, height) = GetHeightRelevantCustomize(character); var (gender, bodyType, clan, height) = GetHeightRelevantCustomize(character);
SetHeightCustomize(character, character->GameObject.DrawObject); SetHeightCustomize(character, character->GameObject.DrawObject);