diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/HybridController.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/HybridController.cs index 28412e0016438f0b78820c97a895a3621990990d..ec609c2390edb43655b9e43afd6e65129b4f98d1 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/HybridController.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/HybridController.cs @@ -110,7 +110,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl retVal = NextComponent.Request(absTime, dt, outTorque, outAngularVelocity, dryRun); retVal.HybridController.StrategySettings = strategySettings; - if (!(retVal is ResponseSuccess) && retVal.Gearbox.Gear != strategySettings.EvaluatedSolution.Gear && retryCount < 3) { + if (!(retVal is ResponseSuccess) && strategySettings.EvaluatedSolution.Gear != 0 && + retVal.Gearbox.Gear != strategySettings.EvaluatedSolution.Gear && retryCount < 3) { retryCount++; retry = true; }