aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/diveobjecthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/subsurface-qt/diveobjecthelper.cpp')
-rw-r--r--core/subsurface-qt/diveobjecthelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/subsurface-qt/diveobjecthelper.cpp b/core/subsurface-qt/diveobjecthelper.cpp
index 1df949b0f..1fa91a301 100644
--- a/core/subsurface-qt/diveobjecthelper.cpp
+++ b/core/subsurface-qt/diveobjecthelper.cpp
@@ -241,8 +241,8 @@ QStringList getFullCylinderList()
addStringToSortedList(cylinders, get_cylinder(d, j)->type.description);
}
- for (int ti = 0; ti < MAX_TANK_INFO; ti++)
- addStringToSortedList(cylinders, tank_info[ti].name);
+ for (int ti = 0; ti < tank_info_table.nr; ti++)
+ addStringToSortedList(cylinders, tank_info_table.infos[ti].name);
return cylinders;
}