mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:10:42 +00:00
fix crash (#371)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user