From bb979260b08b28a0388c30534c773cb51d0b0b40 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sat, 7 Dec 2013 16:25:42 +0100 Subject: Fix gas for start dp It previously always started with o2 in air, now we start with 0 as its the same default as in the cylinders too, which fixes a uninitialized index there too. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/diveplanner.cpp') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 6f7b063bf..7b607abcc 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1393,7 +1393,7 @@ void DivePlannerPointsModel::createTemporaryPlan() // Get the user-input and calculate the dive info // Not sure if this is the place to create the diveplan... // We just start with a surface node at time = 0 - struct divedatapoint *dp = create_dp(0, 0, 209, 0, 0); + struct divedatapoint *dp = create_dp(0, 0, 0, 0, 0); dp->entered = TRUE; diveplan.dp = dp; int lastIndex = -1; -- cgit v1.2.3-70-g09d2