timkurvers / redota

Revisit past Dota 2 matches in the browser
https://timkurvers.github.io/redota
MIT License
51 stars 7 forks source link

Team data / entity processed out of order crash #54

Closed timkurvers closed 2 years ago

timkurvers commented 2 years ago

In match 2569470828 the radiant data entity (CDOTA_DataRadiant) is processed before the radiant team entity (CDOTATeam) which crashes ReDota:

TypeError: team is undefined
    at processTeamData@http://localhost:8080/redota-parser+viewer-2061e105.js:4467:21
    at onEntities@http://localhost:8080/redota-parser+viewer-2061e105.js:4145:21
    at emit@http://localhost:8080/redota-vendor-cff3a606.js?656609026929b1d1db9f:12120:17
    at onCSVCMsg_PacketEntities@http://localhost:8080/redota-parser+viewer-2061e105.js:2563:18
timkurvers commented 2 years ago

Fixed in 34b926766a5a6479ac5ee5afc6849c3de3ffd6e0.