mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
fix: valve raw.players being deleted (#463)
This commit is contained in:
parent
68f9c01886
commit
c81037040b
1 changed files with 3 additions and 1 deletions
|
@ -268,7 +268,9 @@ export default class valve extends Core {
|
|||
if (p.time === -1) return Number.MAX_VALUE
|
||||
return p.time
|
||||
}
|
||||
const sortedPlayers = state.raw.players.sort((a, b) => {
|
||||
|
||||
const rawPlayers = [...state.raw.players]
|
||||
const sortedPlayers = rawPlayers.sort((a, b) => {
|
||||
return botProbability(a) - botProbability(b)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue