Fix gameInfo.mycolor in BaseGame
[vchess.git] / client / src / components / ComputerGame.vue
index 238f109..5ecc1a6 100644 (file)
@@ -100,7 +100,7 @@ export default {
       this.compWorker.postMessage(["newmove",move]);
       // subTurn condition for Marseille (and Avalanche) rules
       if ((!this.vr.subTurn || this.vr.subTurn <= 1)
-        && (this.mode == "auto" || this.vr.turn != this.mycolor))
+        && (this.mode == "auto" || this.vr.turn != this.gameInfo.mycolor))
       {
         this.playComputerMove();
       }