Fixed bug in Dragon Aura cps change display #734

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

No files matched your search

+1 -1
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;