Fixed mistake with CopyData (#338)

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

No files matched your search

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