diff --git a/src/Core/Entities/PlayerEntityControls.m b/src/Core/Entities/PlayerEntityControls.m index 2a311183..89737c13 100644 --- a/src/Core/Entities/PlayerEntityControls.m +++ b/src/Core/Entities/PlayerEntityControls.m @@ -715,7 +715,7 @@ static NSTimeInterval time_last_frame; if (!ident_engaged) { if (missile_status !=MISSILE_STATUS_SAFE) - [UNIVERSE addMessage:[NSString stringWithFormat:@"%@ %@", DESC(@"missile-safe"), (primaryTarget != NO_TARGET && [self hasEquipmentItem:@"EQ_SCANNER_SHOW_MISSILE_TARGET"])? DESC(@"ident-off") : @""] forCount:2.5]; + [UNIVERSE addMessage:[NSString stringWithFormat:@"%@ %@", DESC(@"missile-safe"), (primaryTarget != NO_TARGET && [self hasEquipmentItem:@"EQ_SCANNER_SHOW_MISSILE_TARGET"])? DESC(@"ident-off") : (NSString *)@""] forCount:2.5]; primaryTarget = NO_TARGET; [self safeAllMissiles]; [self playMissileSafe]; diff --git a/src/Core/Entities/ShipEntity.m b/src/Core/Entities/ShipEntity.m index ec2bf204..9637a5f9 100644 --- a/src/Core/Entities/ShipEntity.m +++ b/src/Core/Entities/ShipEntity.m @@ -4873,7 +4873,7 @@ BOOL class_masslocks(int some_class) { ShipEntity* target = [UNIVERSE entityForUniversalID:primaryTarget]; primaryTarget = NO_TARGET; - [self doScriptEvent:@"shipLostTarget" withArgument: (target && target->isShip) ? target : nil]; + [self doScriptEvent:@"shipLostTarget" withArgument:(target && target->isShip) ? (id)target : nil]; [shipAI reactToMessage:@"TARGET_LOST"]; } }