Fix weapon asset loader not linking weaponfulldef attachment uniques to weaponvariantdef

This commit is contained in:
Jan 2021-03-25 13:33:05 +01:00
parent 593493d5fc
commit cb3e4386a9

View File

@ -328,6 +328,7 @@ void AssetLoaderWeapon::LinkWeaponFullDefSubStructs(WeaponFullDef* weapon)
{ {
weapon->weapVariantDef.weapDef = &weapon->weapDef; weapon->weapVariantDef.weapDef = &weapon->weapDef;
weapon->weapVariantDef.attachments = weapon->attachments; weapon->weapVariantDef.attachments = weapon->attachments;
weapon->weapVariantDef.attachmentUniques = weapon->attachmentUniques;
weapon->weapDef.gunXModel = weapon->gunXModel; weapon->weapDef.gunXModel = weapon->gunXModel;
weapon->weapVariantDef.szXAnims = weapon->szXAnims; weapon->weapVariantDef.szXAnims = weapon->szXAnims;
weapon->weapVariantDef.hideTags = weapon->hideTags; weapon->weapVariantDef.hideTags = weapon->hideTags;