aboutsummaryrefslogtreecommitdiffstats
path: root/core/equipment.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/equipment.c')
-rw-r--r--core/equipment.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/equipment.c b/core/equipment.c
index c984aa0b7..91db0cb81 100644
--- a/core/equipment.c
+++ b/core/equipment.c
@@ -72,6 +72,12 @@ void add_weightsystem_description(const weightsystem_t *weightsystem)
}
}
+bool same_weightsystem(weightsystem_t w1, weightsystem_t w2)
+{
+ return w1->weight.grams == w2->weight.grams &&
+ same_string(w1->description, w2->description);
+}
+
bool cylinder_nodata(const cylinder_t *cyl)
{
return !cyl->type.size.mliter &&