From ff74fa9292b05d4005efbf1837bd6e4a5300dfd4 Mon Sep 17 00:00:00 2001 From: Marc Emmanuel Date: Fri, 30 Jan 2026 16:30:36 +0100 Subject: [PATCH] refactor: update findPath call to include pack parameter --- src/modules/routes-generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/routes-generator.ts b/src/modules/routes-generator.ts index 1ca7cd78..788d525b 100644 --- a/src/modules/routes-generator.ts +++ b/src/modules/routes-generator.ts @@ -622,7 +622,7 @@ class RoutesModule { connections: new Map(), }); const isExit = (c: number) => isLand(c, pack) && this.isConnected(c); - const pathCells = findPath(cellId, isExit, getCost); + const pathCells = findPath(cellId, isExit, getCost, pack); if (!pathCells) return; const pointsArray = this.preparePointsArray();