Fixed bug in Dragon Aura cps change display #734

This commit is contained in:
Daniël van Noord
2021-04-02 19:29:49 +02:00
parent 3a28263099
commit 2cff52f5c7
6 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ export default function CalculateChangeAura(aura) {
SimDragonAura2 !== CacheDragonAura2
) {
for (let i = Game.ObjectsById.length - 1; i > -1; --i) {
if (Game.ObjectsById[i - 1].amount > 0) {
if (Game.ObjectsById[i].amount > 0) {
const highestBuilding = SimObjects[Game.ObjectsById[i].name].name;
SimObjects[highestBuilding].amount -= 1;
SimBuildingsOwned -= 1;