Skip to content

Commit

Permalink
Fix hard crash point in SlpFile with different port configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonbane0 committed Feb 9, 2022
1 parent beb2061 commit bf61f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/slpFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ export class SlpFile extends Writable {
switch (command) {
case Command.GAME_START:
const { players } = payload as GameStartType;
forEach(players, (player, i) => {
forEach(players, (player) => {
if (player.type === 3) {
return;
}

this.metadata.players[i] = {
this.metadata.players[player.playerIndex] = {
characterUsage: {},
names: {
netplay: player.displayName,
Expand Down

0 comments on commit bf61f01

Please sign in to comment.