From b915737a0e3860b88d534df76d4ff6818aca304c Mon Sep 17 00:00:00 2001 From: Evan Date: Wed, 20 Nov 2024 20:50:16 -0800 Subject: [PATCH] fix transport ship execution null bug --- src/core/execution/TransportShipExecution.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/execution/TransportShipExecution.ts b/src/core/execution/TransportShipExecution.ts index b39392494..84ac53ad2 100644 --- a/src/core/execution/TransportShipExecution.ts +++ b/src/core/execution/TransportShipExecution.ts @@ -127,9 +127,10 @@ export class TransportShipExecution implements Execution { case PathFindResultType.PathNotFound: // TODO: add to poisoned port list console.warn(`path not found tot dst`) - this.dst = null + this.boat.delete() this.active = false - break + return + } }