mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: Make PasteState cylinders list dynamically allocated
Instead of using a sub-array, use a std::vector<>. This is a necessary step in removing the MAX_CYLINDERS restriction. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
16bdbc54b9
commit
77e5dbac73
2 changed files with 7 additions and 4 deletions
|
@ -246,7 +246,7 @@ struct PasteState {
|
|||
int rating;
|
||||
int visibility;
|
||||
tag_entry *tags;
|
||||
cylinder_t cylinders[MAX_CYLINDERS];
|
||||
std::vector<cylinder_t> cylinders;
|
||||
struct weightsystem_table weightsystems;
|
||||
|
||||
PasteState(dive *d, const dive *data, dive_components what); // Read data from dive data for dive d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue