Skip to content

Commit

Permalink
Fix display of possible duplicate entries for removed parts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDeadman committed Aug 9, 2016
1 parent 284bf33 commit 8404ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KSPPartRemover/Command/RemoveParts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private List<KspPartObject> FindRemovedAndDependentParts (KspCraftObject craft,

var dependentParts = new HashSet<KspPartObject> ();
Parallel.ForEach (removedParts, removedPart => {
foreach (var part in partLookup.LookupHardDependencies (removedPart)) {
foreach (var part in partLookup.LookupHardDependencies (removedPart).Except (removedParts)) {
lock (dependentParts) {
dependentParts.Add (part);
}
Expand Down

0 comments on commit 8404ab4

Please sign in to comment.