fix undef prop
This commit is contained in:
parent
a8b7cad002
commit
e6db2a9b72
|
@ -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({});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue