From 83f4fc7d9ab64689b57f519c9144e4099b571836 Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 18 Feb 2025 11:28:29 -0800 Subject: [PATCH] fix build error --- src/core/execution/PlayerExecution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/execution/PlayerExecution.ts b/src/core/execution/PlayerExecution.ts index a6775d812..59a69386c 100644 --- a/src/core/execution/PlayerExecution.ts +++ b/src/core/execution/PlayerExecution.ts @@ -121,7 +121,7 @@ export class PlayerExecution implements Execution { private surroundedBySamePlayer(cluster: Set): false | Player { const enemies = new Set(); - for (const ref of cluster) { + for (const tile of cluster) { if ( this.mg.isOceanShore(tile) || this.mg.isOnEdgeOfMap(tile) || @@ -130,7 +130,7 @@ export class PlayerExecution implements Execution { return false; } this.mg - .neighbors(ref) + .neighbors(tile) .filter((n) => this.mg.ownerID(n) != this.player.smallID()) .forEach((p) => enemies.add(this.mg.ownerID(p))); if (enemies.size != 1) {