diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/equipment.c | 2 | ||||
-rw-r--r-- | core/equipment.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/equipment.c b/core/equipment.c index 05e71cee5..323bab3d8 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -127,7 +127,7 @@ void add_weightsystem_description(const weightsystem_t *weightsystem) weightsystem_t clone_weightsystem(weightsystem_t ws) { - weightsystem_t res = { ws.weight, copy_string(ws.description) }; + weightsystem_t res = { ws.weight, copy_string(ws.description), ws.auto_filled }; return res; } diff --git a/core/equipment.h b/core/equipment.h index 7df54ad50..463040b6a 100644 --- a/core/equipment.h +++ b/core/equipment.h @@ -50,9 +50,10 @@ typedef struct { weight_t weight; const char *description; /* "integrated", "belt", "ankle" */ + bool auto_filled; /* weight was automatically derived from the type */ } weightsystem_t; -static const weightsystem_t empty_weightsystem = { { 0 }, 0 }; +static const weightsystem_t empty_weightsystem = { { 0 }, 0, false }; /* Table of weightsystems. Attention: this stores weightsystems, * *not* pointers * to weightsystems. This has two crucial |