diff options
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c index b8f679324..82b10a47e 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1024,7 +1024,8 @@ static void try_to_fill_dive(struct dive **divep, const char *name, char *buf) return; if (MATCH(".buddy", utf8_string, &dive->buddy)) return; - + if (MATCH(".rating", get_index, &dive->rating)) + return; if (MATCH(".cylinder.size", cylindersize, &dive->cylinder[cylinder_index].type.size)) return; if (MATCH(".cylinder.workpressure", pressure, &dive->cylinder[cylinder_index].type.workingpressure)) |