X-Git-Url: https://git.auder.net/doc/index.css?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=2a9a701817af5cbaf980fbac0ff9ec72d62fba6d;hb=444615475746b98a4338de2a6bb9e70f5735780b;hp=f5bef8effdeae9f4340862e8c0783302a7ff8054;hpb=5c42c64e0b43ad4d687c58a6b7e9b9ac5d212e17;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index f5bef8ef..2a9a7018 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -242,13 +242,14 @@ Vue.component('my-game', { elementArray.push(gameDiv); if (!!this.vr.reserve) { + const shiftIdx = (this.mycolor=="w" ? 0 : 1); let myReservePiecesArray = []; for (let i=0; i