fix build error

This commit is contained in:
Evan
2025-02-18 11:28:29 -08:00
parent 59d3a8d2c9
commit 83f4fc7d9a
+2 -2
View File
@@ -121,7 +121,7 @@ export class PlayerExecution implements Execution {
private surroundedBySamePlayer(cluster: Set<TileRef>): false | Player {
const enemies = new Set<number>();
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) {