Always delete tradeship on pathfinding fail (#921)

Fixes #912

## Description:

Always delete tradeship on pathfinding fail

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [ ] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
Scott Anderson
2025-05-28 13:32:22 -04:00
committed by evanpelle
parent 64c939df21
commit 9e95a0077b
+1 -3
View File
@@ -171,9 +171,7 @@ export class TradeShipExecution implements Execution {
}
case PathFindResultType.PathNotFound:
consolex.warn("trade ship cannot find route");
if (this.tradeShip!.isActive()) {
this.tradeShip!.delete(false);
}
this.tradeShip?.delete(false);
this.active = false;
break;
default: