diff options
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/save-git.c b/core/save-git.c index 2b50fe7f7..4c57a5350 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -165,9 +165,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_string(b, "weightsystem"); put_milli(b, " weight=", grams, "kg"); |