From 8aa6d232c3b26a73580aaaadd098b04e5426f411 Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Sat, 26 Apr 2025 04:00:23 +0200 Subject: [PATCH] potential sam fix --- src/core/execution/SAMLauncherExecution.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/execution/SAMLauncherExecution.ts b/src/core/execution/SAMLauncherExecution.ts index 5e37cf9cd..84af1aca7 100644 --- a/src/core/execution/SAMLauncherExecution.ts +++ b/src/core/execution/SAMLauncherExecution.ts @@ -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(