------------------------------------- PPic_GetOffsetByID Purpose: Returns the file offset of the given pilot id. -1 if not found -------------------------------------
| 708 | // Returns the file offset of the given pilot id. -1 if not found |
| 709 | // ------------------------------------- |
| 710 | int PPic_GetOffsetByID(uint16_t pilot_id) { |
| 711 | int index = PPic_GetIndexFromID(pilot_id); |
| 712 | if (index == -1) |
| 713 | return -1; |
| 714 | return Pilot_id_to_offset[index].offset; |
| 715 | } |
| 716 | |
| 717 | // ------------------------------------- |
| 718 | // PPic_GetIndexFromID |
no test coverage detected