diff --git a/src/core/pathfinding/transformers/ShoreCoercingTransformer.ts b/src/core/pathfinding/transformers/ShoreCoercingTransformer.ts index 1ba652db5..523387127 100644 --- a/src/core/pathfinding/transformers/ShoreCoercingTransformer.ts +++ b/src/core/pathfinding/transformers/ShoreCoercingTransformer.ts @@ -41,7 +41,8 @@ export class ShoreCoercingTransformer implements PathFinder { } // Search on water tiles - const path = this.inner.findPath(waterFrom, coercedTo.water); + const fromTiles = waterFrom.length === 1 ? waterFrom[0] : waterFrom; + const path = this.inner.findPath(fromTiles, coercedTo.water); if (!path || path.length === 0) { return null; }