diff --git a/js/index.js b/js/index.js index ce9d0db..f5d9d81 100644 --- a/js/index.js +++ b/js/index.js @@ -74,6 +74,7 @@ const build = { b.guns[index].count = 0; b.guns[index].have = false; if (b.guns[index].ammo != Infinity) b.guns[index].ammo = 0; + if (b.inventory.length === 0) b.activeGun = null; game.makeGunHUD(); break }