summaryrefslogtreecommitdiffstats
path: root/qt-models/divesummarymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divesummarymodel.cpp')
-rw-r--r--qt-models/divesummarymodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divesummarymodel.cpp b/qt-models/divesummarymodel.cpp
index d187f2b58..6ae5313e4 100644
--- a/qt-models/divesummarymodel.cpp
+++ b/qt-models/divesummarymodel.cpp
@@ -148,7 +148,7 @@ static void calculateDive(struct dive *dive, Stats &stats)
// EAN dive ?
for (int j = 0; j < dive->cylinders.nr; ++j) {
- if (dive->cylinders.cylinders[j].gasmix.o2.permille > 210) {
+ if (get_cylinder(dive, j)->gasmix.o2.permille > 210) {
stats.divesEAN++;
break;
}