Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 74eaf6d2 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

to replace an existing result, also the vehicleclass needs to match (necessary for primary buses!)

parent bf218b5f
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ namespace TUGraz.VectoCore.OutputData
entry.Initialize(runData);
lock (Results) {
var exístingResult = Results.SingleOrDefault(e =>
e.Mission == entry.Mission && e.LoadingType == entry.LoadingType && e.OVCMode == entry.OVCMode);
e.Mission == entry.Mission && e.LoadingType == entry.LoadingType && e.OVCMode == entry.OVCMode && e.VehicleClass == entry.VehicleClass);
if (exístingResult != null) {
//We already have a result for this run stored, this can happen with iterative runs, in this case we have to remove the old result
Results.Remove(exístingResult);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment