X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FRules.vue;h=c069eb29b073451c2f195354dce7a75dd37a2281;hb=996bdaa457f04f8b65b4018193ace54ccec953c1;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); }); }