mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Fix changed data offset for weapon.
This commit is contained in:
parent
55f2053fe6
commit
94b7ea2d9d
1 changed files with 3 additions and 3 deletions
|
|
@ -198,11 +198,11 @@ public sealed unsafe class MaterialManager : IRequiredService, IDisposable
|
|||
/// </summary>
|
||||
private static CharacterWeapon GetTempSlot(Weapon* weapon)
|
||||
{
|
||||
// TODO: Fix offset
|
||||
var changedData = *(void**)((byte*)weapon + 0x918);
|
||||
var changedData = *(void**)((byte*)weapon + 0xA00);
|
||||
if (changedData == null)
|
||||
return new CharacterWeapon(weapon->ModelSetId, weapon->SecondaryId, (Variant)weapon->Variant, StainIds.FromWeapon(*weapon));
|
||||
|
||||
return new CharacterWeapon(weapon->ModelSetId, *(SecondaryId*)changedData, ((Variant*)changedData)[2], new StainIds(((StainId*)changedData)[3], ((StainId*)changedData)[4]));
|
||||
return new CharacterWeapon(weapon->ModelSetId, *(SecondaryId*)changedData, ((Variant*)changedData)[2],
|
||||
new StainIds(((StainId*)changedData)[3], ((StainId*)changedData)[4]));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue