From 86d370226a2931caa81770bbb01c36f5e0fd3d8b Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 20 Nov 2024 11:50:30 +0100 Subject: [PATCH] Update weapon changed data offset. --- Glamourer/Interop/Material/MaterialManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Glamourer/Interop/Material/MaterialManager.cs b/Glamourer/Interop/Material/MaterialManager.cs index 7f13c2d3..f3c1875b 100644 --- a/Glamourer/Interop/Material/MaterialManager.cs +++ b/Glamourer/Interop/Material/MaterialManager.cs @@ -200,7 +200,8 @@ private static CharacterWeapon GetTempSlot(Human* human, byte slotId) /// private static CharacterWeapon GetTempSlot(Weapon* weapon) { - var changedData = *(void**)((byte*)weapon + 0xA00); + // TODO: Use ClientStructs + var changedData = *(void**)((byte*)weapon + 0xA40); if (changedData == null) return new CharacterWeapon(weapon->ModelSetId, weapon->SecondaryId, (Variant)weapon->Variant, StainIds.FromWeapon(*weapon));