Fixed mistake with CopyData (#338)
This commit is contained in:
1 parent
eda7514001
commit
8ea9400a07
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user