Skip to content

Commit

Permalink
fix ballle98#81: Add support for boost and freeze protect to equiptme…
Browse files Browse the repository at this point in the history
…nt_update_cycle

compiler warning
  • Loading branch information
ballle98 committed Aug 31, 2023
1 parent 79cf3e8 commit a62b7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a62b7fe

Please sign in to comment.