fix crash (#371)

This commit is contained in:
Ilan Schemoul
2025-03-30 19:42:31 +02:00
committed by GitHub
parent d59a3bb623
commit 80ece56268
+3 -1
View File
@@ -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