fix ballle98/AqualinkD#81: Add support for boost and freeze protect to equiptment_update_cycle

compiler warning
pull/249/head
Lee Ballard 2023-08-31 10:41:01 -05:00
parent 79cf3e8c94
commit a62b7fe03e
1 changed files with 1 additions and 1 deletions

2
pda.c
View File

@ -171,7 +171,7 @@ void equiptment_update_cycle(int eqID) {
} else if ((eqID >= 0) && (eqID < 32)) {
update_equiptment_bitmask |= (1 << (eqID));
char *eqName = NULL;
if (eqID < _aqualink_data->total_buttons) {
if (eqID < TOTAL_BUTTONS) {
eqName = _aqualink_data->aqbuttons[eqID].name;
} else if (eqID == FREEZE_PROTECT_INDEX) {
eqName = "FREEZE PROTECT";