Skip to content

Commit

Permalink
fix(HSReplay): ensure game type is read even without a game id
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Sep 8, 2023
1 parent dc6ba09 commit cc848af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/protocol/HSReplayDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export default class HSReplayDecoder extends Stream.Transform
const gameId = node.attributes["id"];
if (gameId) {
this.gameId = +gameId;
this.gameType = +node.attributes["type"] || null;
this.currentGame = +gameId;
}
this.gameType = +node.attributes["type"] || null;
break;
case "GameEntity":
case "Player":
Expand Down

0 comments on commit cc848af

Please sign in to comment.