mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
code cleanup: introduce empty_cylinder constant
This deals with the issue of initializing structs in C++. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e419f7445
commit
cef30619d0
12 changed files with 18 additions and 16 deletions
|
|
@ -33,6 +33,8 @@ typedef struct
|
|||
bool bestmix_he;
|
||||
} cylinder_t;
|
||||
|
||||
static const cylinder_t empty_cylinder = { { { 0 }, { 0 }, (const char *)0}, { { 0 }, { 0 } } , { 0 }, { 0 }, { 0 }, { 0 }, { 0 }, false, { 0 }, { 0 }, OC_GAS, false, false };
|
||||
|
||||
/* Table of cylinders. Attention: this stores cylinders,
|
||||
* *not* pointers to cylinders. This has two crucial consequences:
|
||||
* 1) Pointers to cylinders are not stable. They may be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue