18.10.2011, 10:58
Basically, the code was run way more than 499 times. That means j would go way beyond the max size of the enum array, causing an boundary overrun. IsPlayerConnected validates the argument (i.e. if larger than 499, return invalid), so it never causes any errors.