getActivePlayerIndex can return incorrect zero value
zero is a valid array index, therefore returning zero is not a good way to indicate that the player is not active.
zero will be returned if a player does not exist in the array, but zero is a valid array index so the person calling the function will think it's active
VSCode
the function should return -1 or revert if the player is not active. if returning -1, the return value should be a signed integer.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.