diff --git a/src/ship.c b/src/ship.c index 337bc5b..913ed4a 100644 --- a/src/ship.c +++ b/src/ship.c @@ -58,15 +58,16 @@ char** ship_getTech(int* n, const int* tech, const int techmax) { char** shipnames; Ship** ships; + /* Get availabble ships for tech. */ ships = malloc(sizeof(Ship*) * ship_nstack); num = 0; for(i = 0; i < ship_nstack; i++) { - if(ship_stack[i].tech <= tech[0]) { + if(ship_stack[i].tech <= tech[0]) { /* Check vs base tech. */ ships[num] = &ship_stack[i]; num++; } else { for(j = 0; j < techmax; j++) - if(tech[j] == ship_stack[i].tech) { + if(tech[j] == ship_stack[i].tech) { /* Check vs special tech. */ ships[num] = &ship_stack[i]; num++; }