Half-Life: Fix the bug that WEAPON_SNARK doesn't get removed from the inventory when all snarks have been deployed.

This commit is contained in:
Marco Cawthorne 2020-07-12 00:00:41 +02:00
parent 4323dd71bd
commit 80c5cdc5f9
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ void w_snark_primary(void)
w_snark_deploy();
pl.ammo_snark--;
if (pl.a_ammo2 <= 0) {
if (pl.ammo_snark <= 0) {
Weapons_RemoveItem(pl, WEAPON_SNARK);
}
#endif