mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-14 20:54:17 +01:00
Fix some offsets.
This commit is contained in:
parent
381b23fe0c
commit
b1e65e6f9d
1 changed files with 3 additions and 4 deletions
|
|
@ -197,12 +197,11 @@ public sealed unsafe class MaterialManager : IRequiredService, IDisposable
|
|||
/// </summary>
|
||||
private static CharacterWeapon GetTempSlot(Weapon* weapon)
|
||||
{
|
||||
// TODO: Use ClientStructs
|
||||
var changedData = *(void**)((byte*)weapon + 0xA40);
|
||||
var changedData = weapon->ChangedData;
|
||||
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, changedData->SecondaryId, changedData->Variant,
|
||||
new StainIds(changedData->Stain0, changedData->Stain1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue