From 5ff42b084998932aca840dfdef3af6268ec893ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 30 May 2020 18:05:22 +0200 Subject: [PATCH] MAPG-71 remove guessMarker from map when resetting the game --- public/static/js/game.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/static/js/game.js b/public/static/js/game.js index 20a5c4b..f13460a 100644 --- a/public/static/js/game.js +++ b/public/static/js/game.js @@ -56,6 +56,11 @@ }, resetGame: function () { + if (Core.guessMarker) { + Core.guessMarker.setMap(null); + Core.guessMarker = null; + } + for (var i = 0; i < Core.rounds.length; ++i) { var round = Core.rounds[i];