diff --git a/src/Core/Entities/ShipEntityAI.m b/src/Core/Entities/ShipEntityAI.m index e3429cb6..f39a36b7 100644 --- a/src/Core/Entities/ShipEntityAI.m +++ b/src/Core/Entities/ShipEntityAI.m @@ -1404,7 +1404,7 @@ WormholeEntity* whole; for (i = 0; i < n_scanned_ships; i++) { ShipEntity *thing = scanned_ships[i]; - if ([thing hasRole:@"boulder"]) + if ([thing hasRole:@"asteroid"]) { GLfloat d2 = distance2_scanned_ships[i]; if (d2 < found_d2) @@ -1754,7 +1754,7 @@ WormholeEntity* whole; } -- (void) scriptActionOnTarget:(NSString*) action +- (void) scriptActionOnTarget:(NSString *)action { PlayerEntity *player = [PlayerEntity sharedPlayer]; Entity *targEnt = [UNIVERSE entityForUniversalID:primaryTarget];