Fix the win counter when rewinding from the results screen in replays

This commit is contained in:
Andrio Celos 2023-08-18 21:41:40 +10:00
parent 550e318c55
commit 06f929b547

View File

@ -676,6 +676,7 @@ function showResult() {
el.classList.remove('lose');
el.classList.remove('draw');
el.innerText = 'Victory';
if (currentReplay) currentGame.players[i].gamesWon++;
playerBars[i].winCounter.wins++;
} else {
el.classList.remove('win');