I think if you use unsigned, then 'id -= overlay_first_id' will not be less than 0 but will be a very large value and will be harder to judge.
I think if you use unsigned, then 'id -= overlay_first_id' will not be less than 0 but will be a very large value and will be harder to judge.