fix undef prop

This commit is contained in:
Smith 2021-12-09 22:25:38 +01:00
parent a8b7cad002
commit e6db2a9b72
1 changed files with 1 additions and 1 deletions

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