From fb836d7e77b75f27891130c71865eb8f67b7e9e3 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 1 Oct 2018 12:11:09 +0300 Subject: [PATCH] Fix results crashing if other player disconnects early --- public/src/js/scoresheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/scoresheet.js b/public/src/js/scoresheet.js index 493c32b..97e9adc 100644 --- a/public/src/js/scoresheet.js +++ b/public/src/js/scoresheet.js @@ -132,7 +132,7 @@ class Scoresheet{ var frameTop = winH / 2 - 720 / 2 var frameLeft = winW / 2 - 1280 / 2 - var players = this.multiplayer ? 2 : 1 + var players = p2.results ? 2 : 1 var p2Offset = 298 var bgOffset = 0