Better way to check for alts

This commit is contained in:
Louvenarde 2023-11-26 13:07:36 +01:00
parent 558ecb6e7b
commit cfe7446732

View File

@ -227,7 +227,7 @@ namespace Assets
}
}
if (asset->szAltWeaponName && *asset->szAltWeaponName != 0 && !asset->dpadIcon) // A very bad way to check if this is already an alt
if (asset->szAltWeaponName && *asset->szAltWeaponName != 0 && asset->weapDef->ammoCounterClip != Game::AMMO_COUNTER_CLIP_ALTWEAPON) // A very bad way to check if this is already an alt
{
builder->loadAssetByName(Game::XAssetType::ASSET_TYPE_WEAPON, asset->szAltWeaponName, false);
}