From df21562a5a3e35091737165b8fab3741fa03e84e Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Fri, 8 Apr 2016 14:51:47 +0200
Subject: [PATCH] bugfix: wrong output when brake action requires no search

---
 VectoCore/Models/SimulationComponent/Impl/Driver.cs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/VectoCore/Models/SimulationComponent/Impl/Driver.cs b/VectoCore/Models/SimulationComponent/Impl/Driver.cs
index 8f49ccf2d7..bdf4045357 100644
--- a/VectoCore/Models/SimulationComponent/Impl/Driver.cs
+++ b/VectoCore/Models/SimulationComponent/Impl/Driver.cs
@@ -392,6 +392,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 				Default(r => { throw new UnexpectedResponseException("DrivingAction Brake: first request.", r); });
 
 			if (retVal != null) {
+				CurrentState.Acceleration = operatingPoint.Acceleration;
+				CurrentState.dt = operatingPoint.SimulationInterval;
+				CurrentState.Response = retVal;
 				retVal.Acceleration = operatingPoint.Acceleration;
 				retVal.SimulationInterval = operatingPoint.SimulationInterval;
 				return retVal;
-- 
GitLab