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.
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.
evilz/sc2replay-csharp,ascendedguard/sc2replay-csharp