potential sam fix

This commit is contained in:
1brucben
2025-04-26 04:00:23 +02:00
parent 18c74baf78
commit 8aa6d232c3
+6 -1
View File
@@ -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(