* hid: Prevent out of bounds array access * Cast player to uint * Replace lambda function with local function