aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-html.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-html.c')
-rw-r--r--core/save-html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/save-html.c b/core/save-html.c
index 21b76188e..ecea33458 100644
--- a/core/save-html.c
+++ b/core/save-html.c
@@ -106,9 +106,9 @@ static void put_weightsystem_HTML(struct membuffer *b, struct dive *dive)
char *separator = "";
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, separator);
separator = ", ";