Skip to content

Commit

Permalink
Better way to check for alts
Browse files Browse the repository at this point in the history
  • Loading branch information
Louvenarde committed Nov 26, 2023
1 parent 558ecb6 commit cfe7446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Modules/AssetInterfaces/IWeapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cfe7446

Please sign in to comment.