mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
fix undef prop
This commit is contained in:
parent
a8b7cad002
commit
e6db2a9b72
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class Players extends Array {
|
||||||
// run out of ram allocating these objects.
|
// run out of ram allocating these objects.
|
||||||
num = Math.min(num, 10000);
|
num = Math.min(num, 10000);
|
||||||
|
|
||||||
while(this.players.length < num) {
|
while(this.length < num) {
|
||||||
this.push({});
|
this.push({});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue