summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dive.c b/dive.c
index 3b448e503..f1e113d05 100644
--- a/dive.c
+++ b/dive.c
@@ -2272,6 +2272,10 @@ struct picture* dive_add_picture(struct dive *d, char *picture)
uint dive_get_picture_count(struct dive *d)
{
+ uint i = 0;
+ FOR_EACH_PICTURE( d )
+ i++;
+ return i;
}
void dive_remove_picture(struct dive *d, char *picture)