diff options
Diffstat (limited to 'core/save-xml.c')
-rw-r--r-- | core/save-xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/save-xml.c b/core/save-xml.c index 75e90f921..d50404059 100644 --- a/core/save-xml.c +++ b/core/save-xml.c @@ -205,9 +205,9 @@ static void save_weightsystem_info(struct membuffer *b, struct dive *dive) nr = nr_weightsystems(dive); for (i = 0; i < nr; i++) { - weightsystem_t *ws = dive->weightsystem + i; - int grams = ws->weight.grams; - const char *description = ws->description; + weightsystem_t ws = dive->weightsystems.weightsystems[i]; + int grams = ws.weight.grams; + const char *description = ws.description; put_format(b, " <weightsystem"); put_milli(b, " weight='", grams, " kg'"); |