X-Git-Url: https://git.auder.net/images/pieces/%22%20%20VariantRules.getPpath%28board%5Bi%5D%5Bj%5D%29%20%20%20%22.svg?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FRules.vue;h=c069eb29b073451c2f195354dce7a75dd37a2281;hb=b2e8c34e0158f512741d67b8a1c25425e0b8747e;hp=dc96ffb40a07c72b06f745c7197c436f47a037fc;hpb=aa32568ef0c9fff28d17d19588b53ee049f0e1dc;p=vchess.git diff --git a/client/src/views/Rules.vue b/client/src/views/Rules.vue index dc96ffb4..c069eb29 100644 --- a/client/src/views/Rules.vue +++ b/client/src/views/Rules.vue @@ -120,7 +120,12 @@ export default { this.gameInfo.mode = mode; if (this.gameInfo.mode == "versus") { CompgameStorage.get(this.gameInfo.vname, (game) => { - // NOTE: game might be null + // NOTE: game might be null (if none stored yet) + if (!!game && !V.IsGoodFen(game.fen)) { + // Some issues with stored game: delete + CompgameStorage.remove(game.vname); + game = null; + } this.$refs["compgame"].launchGame(game); }); }