Fixed mistake with CopyData (#338)

This commit is contained in:
DanielNoord
2020-11-24 15:59:02 +01:00
committed by GitHub
parent eda7514001
commit 8ea9400a07
2 changed files with 2 additions and 2 deletions

View File

@@ -462,8 +462,8 @@ CM.Sim.CheckOtherAchiev = function() {
CM.Sim.BuyBuildings = function(amount, target) {
CM.Cache[target] = [];
CM.Sim.CopyData();
for (var i in Game.Objects) {
CM.Sim.CopyData();
var me = CM.Sim.Objects[i];
me.amount += amount;