From e6db2a9b723a43eb7d650c53795cecff30c56889 Mon Sep 17 00:00:00 2001 From: Smith Date: Thu, 9 Dec 2021 22:25:38 +0100 Subject: [PATCH] fix undef prop --- lib/Results.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Results.js b/lib/Results.js index 2ca54ba..fc7a252 100644 --- a/lib/Results.js +++ b/lib/Results.js @@ -19,7 +19,7 @@ class Players extends Array { // run out of ram allocating these objects. num = Math.min(num, 10000); - while(this.players.length < num) { + while(this.length < num) { this.push({}); } }