diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/AMTShiftStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/AMTShiftStrategy.cs index 137d9a7e9123283d7c2f732fe0a4d21169002507..b5a3413f2966498a717da3fdd38b3f211c47c067 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/AMTShiftStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/AMTShiftStrategy.cs @@ -72,8 +72,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl private bool SpeedTooHighForEngine(uint gear, PerSecond outAngularSpeed) { return - (outAngularSpeed * ModelData.Gears[gear].Ratio).IsGreaterOrEqual(ModelData.Gears[gear].MaxSpeed ?? - DataBus.EngineN95hSpeed); + (outAngularSpeed * ModelData.Gears[gear].Ratio).IsGreaterOrEqual(VectoMath.Min(ModelData.Gears[gear].MaxSpeed, + DataBus.EngineN95hSpeed)); } public override GearInfo NextGear