MAPG-71 remove guessMarker from map when resetting the game

This commit is contained in:
Bence Pőcze 2020-05-30 18:05:22 +02:00
parent a27aece4fa
commit 5ff42b0849

View File

@ -56,6 +56,11 @@
}, },
resetGame: function () { resetGame: function () {
if (Core.guessMarker) {
Core.guessMarker.setMap(null);
Core.guessMarker = null;
}
for (var i = 0; i < Core.rounds.length; ++i) { for (var i = 0; i < Core.rounds.length; ++i) {
var round = Core.rounds[i]; var round = Core.rounds[i];