The function getActivePlayerIndex
loops through array and returns 0 if players has not been found. This is ambiguous since 0 is a valid index for array in Solidity.
Function returns 0, which is a valid array index.
Misleading return value
Either:
Return -1 as int256
Return uint256 max value and make it explicit to the consumer of the contract
Revert with error
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.