From cb2c4f33a056d4241384f73dd5b63236c971be20 Mon Sep 17 00:00:00 2001 From: DIPPOLD Martin <Dippold@ivt.tugraz.at> Date: Wed, 25 Jun 2014 09:31:25 +0200 Subject: [PATCH] Correction of GenShape selection (JSON restructuring) --- CSE/Calculation/sub_linear_regression.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSE/Calculation/sub_linear_regression.vb b/CSE/Calculation/sub_linear_regression.vb index a852e4b..08ec315 100644 --- a/CSE/Calculation/sub_linear_regression.vb +++ b/CSE/Calculation/sub_linear_regression.vb @@ -400,7 +400,7 @@ ' Find the correct curve For i = 0 To GenShape.veh_class.Count - 1 - If GenShape.veh_class(i) = vehicleX.classCode And CBool(GenShape.veh_conf(i)) = vehicleX.IsRigid Then + If GenShape.veh_class(i) = vehicleX.classCode And CBool(GenShape.veh_conf(i)) = Not vehicleX.IsRigid Then pos = i Exit For End If -- GitLab