From 80ece56268e72a519bb30a8a2dc6cd8b2048337e Mon Sep 17 00:00:00 2001 From: Ilan Schemoul Date: Sun, 30 Mar 2025 19:42:31 +0200 Subject: [PATCH] fix crash (#371) --- src/core/execution/NukeExecution.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/execution/NukeExecution.ts b/src/core/execution/NukeExecution.ts index bda5eca39..2935377ef 100644 --- a/src/core/execution/NukeExecution.ts +++ b/src/core/execution/NukeExecution.ts @@ -88,7 +88,9 @@ export class NukeExecution implements Execution { const silo = this.player .units(UnitType.MissileSilo) .find((silo) => silo.tile() === spawn); - silo.setCooldown(true); + if (silo) { + silo.setCooldown(true); + } } // make the nuke unactive if it was intercepted