summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/dive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c
index df5d7951d..3bba4179c 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3596,7 +3596,7 @@ bool dive_remove_picture(struct dive *d, const char *filename)
struct picture *temp = (*picture)->next;
free_picture(*picture);
*picture = temp;
- invalidate_dive_cache(current_dive);
+ invalidate_dive_cache(d);
return true;
}
return false;