Update index.js

This commit is contained in:
Skillet 2023-04-17 18:42:28 -04:00 committed by GitHub
parent 70e2be8c51
commit 38b3a77cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,7 +378,7 @@ export default class SquadServer extends EventEmitter {
players.push({
...oldPlayerInfo[player.steamID],
...player,
playercont: this.logParser.eventStore.players[player.steamID].controller,
playercont: this.logParser.eventStore.players[player.steamID] ? this.logParser.eventStore.players[player.steamID].controller : null,
squad: await this.getSquadByID(player.teamID, player.squadID)
});