mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move add_cylinder() to struct cylinder_table
Feels natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
22a1120b30
commit
80b5f6bfcd
6 changed files with 12 additions and 13 deletions
|
@ -148,7 +148,7 @@ static void parse_dives(int log_version, const unsigned char *buf, unsigned int
|
|||
/* Just the main cylinder until we can handle the buddy cylinder porperly */
|
||||
for (i = 0; i < 1; i++) {
|
||||
cylinder_t cyl = default_cylinder(dive.get());
|
||||
add_cylinder(&dive->cylinders, i, cyl);
|
||||
dive->cylinders.add(i, cyl);
|
||||
}
|
||||
|
||||
// Model 0=Xen, 1,2=Xeo, 4=Lynx, other=Liquivision
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue