From c9898ad53f79b4480e7541a0c8dcf01830834741 Mon Sep 17 00:00:00 2001 From: landgreen Date: Thu, 27 Feb 2020 06:48:25 -0800 Subject: [PATCH] active gun bug fix --- js/index.js | 1 + 1 file changed, 1 insertion(+) 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 }