ascendedguard / sc2replay-csharp

C# Library for parsing Starcraft 2 Replay files
MIT License
56 stars 20 forks source link

Replay.GetPlayerById was incorrectly testing the player ID for "out of bounds" #16

Closed jamiepenney closed 13 years ago

jamiepenney commented 13 years ago

GetPlayerById was incorrectly testing the player ID for "out of bounds" issues, rather than the playerIndex, so trying to get the last player in the Players array would return null instead.