Skip to content

Commit

Permalink
Update weapon changed data offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Nov 20, 2024
1 parent f9c7e56 commit 86d3702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Glamourer/Interop/Material/MaterialManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ private static CharacterWeapon GetTempSlot(Human* human, byte slotId)
/// </summary>
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));

Expand Down

0 comments on commit 86d3702

Please sign in to comment.