mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Not every aircraft has a pydcs radio index, so we can't use that to index into a list. Any mission with an A-10C crashes, since it would try to use `None - 1` to index into the list of radios to find the intra-flight radio. Also fix the radio ranges for the newly added radios. The current implementation can't model gaps, so extending the radio ranges across those gaps means that we might allocate channels that aren't tunable by those radios. Additionally, the end frequency is exclusive rather than inclusive, so fix the ranges to include that last tunable frequency.