fix undef prop

This commit is contained in:
Smith 2021-12-09 22:25:38 +01:00
parent a8b7cad002
commit e6db2a9b72

View file

@ -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({});
}
}