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) }