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

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

return a start distance in case no cycle is set

parent 16b63042
No related branches found
No related tags found
No related merge requests found
...@@ -267,7 +267,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl ...@@ -267,7 +267,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
public Meter CycleStartDistance public Meter CycleStartDistance
{ {
get { return Road.CycleStartDistance; } get { return Road == null ? 0.SI<Meter>() : Road.CycleStartDistance; }
} }
} }
} }
\ No newline at end of file
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