barrett777 / Heroes.ReplayParser

A C# library for parsing Heroes of the Storm replay files (.StormReplay)
MIT License
223 stars 95 forks source link

Check if activeHeroUnits key exists #83

Closed koliva8245 closed 5 years ago

koliva8245 commented 5 years ago

line 522 activeHeroUnits[newUnit.PlayerControlledBy].Positions.Add(new Position { TimeSpan = newUnit.TimeSpanBorn, Point = newUnit.PointBorn }); threw an error because the key wasn't created yet. A locust was born before abathur was.