From e8ebd07e3abf9aca4f18f6a1736091688c8c57ef Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Tue, 1 Dec 2020 21:02:08 -0500 Subject: [PATCH] Update game.js --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 47b224a..3e78582 100644 --- a/js/game.js +++ b/js/game.js @@ -275,7 +275,7 @@ VERSION.withName = VERSION.withoutName + (VERSION.name ? ": " + VERSION.name : " function autobuyUpgrades(layer){ if (!tmp[layer].upgrades) return for (id in tmp[layer].upgrades) - if (isPlainObject(tmp[layers].upgrades[id]) && (layers[layer].upgrades[id].canAfford === undefined || layers[layer].upgrades[id].canAfford() === true)) + if (isPlainObject(tmp[layer].upgrades[id]) && (layers[layer].upgrades[id].canAfford === undefined || layers[layer].upgrades[id].canAfford() === true)) buyUpg(layer, id) }