(f39b618d6) Fix only one objective being added in the loops at a time, because duplicates were ignored. We don't want that here.
This commit is contained in:
@@ -160,7 +160,10 @@ namespace Barotrauma
|
||||
objective = ObjectiveConstructor(target);
|
||||
objective.Completed += () => ReportedTargets.Remove(target);
|
||||
Objectives.Add(target, objective);
|
||||
AddSubObjective(objective);
|
||||
if (!subObjectives.Contains(objective))
|
||||
{
|
||||
subObjectives.Add(objective);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user