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 <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2013-12-07 16:25:42 +01:00 committed by Dirk Hohndel
parent 90634b3814
commit bb979260b0

View file

@ -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;