Skip to content

Commit

Permalink
Fix waypoints saving crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacialCircumstances committed Jul 6, 2024
1 parent f11c232 commit b3c92aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/waypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class WaypointService {
if (+newFirstWaypoint.delayTicks) {
throw new ValidationError('The first waypoint cannot have delay ticks if mid-flight.');
}
} else {
} else if (waypoints?.length > 0) {
if (carrier.orbiting.toString() !== waypoints[0].source.toString()) {
throw new ValidationError('The source star does not match the carrier location.');
}
Expand Down

0 comments on commit b3c92aa

Please sign in to comment.