From 31fab7dd87886186e94e0f30e60302fd67aae69d Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Mon, 18 Apr 2022 13:20:00 +0200
Subject: [PATCH] bugfix: do not reset idle controller on dry-runs

---
 VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
index d0451b85a6..668e1523b3 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs
@@ -107,7 +107,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 				return HandleClutchOpen(absTime, dt, outTorque, outAngularVelocity, false);
 			}
 
-			if (IdleController != null) {
+			if (IdleController != null && !dryRun) {
 				IdleController.Reset();
 			}
 
-- 
GitLab