eject[i] = val;
}
} else {
- if ( (which_seat >= 0) && (which_seat <= MAX_EJECTION_SEATS) ) {
+ if ( (which_seat >= 0) && (which_seat < MAX_EJECTION_SEATS) ) {
if ( eseat_status[which_seat] == SEAT_SAFED ||
eseat_status[which_seat] == SEAT_FAIL )
{
eseat_status[i] = val;
}
} else {
- if ( (which_seat >=0) && (which_seat <= MAX_EJECTION_SEATS) ) {
+ if ( (which_seat >=0) && (which_seat < MAX_EJECTION_SEATS) ) {
eseat_status[which_seat] = val;
}
}