mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 10:22:35 +00:00
potential sam fix
This commit is contained in:
@@ -174,7 +174,12 @@ export class SAMLauncherExecution implements Execution {
|
||||
this.sam.owner().id(),
|
||||
);
|
||||
// Delete warheads
|
||||
this.warheadTargets.forEach((u) => u.delete());
|
||||
// Delete warheads safely
|
||||
this.warheadTargets.forEach((u) => {
|
||||
if (u.isActive()) {
|
||||
u.delete();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.target.setTargetedBySAM(true);
|
||||
this.mg.addExecution(
|
||||
|
||||
Reference in New Issue
Block a user