summaryrefslogtreecommitdiffstats
path: root/display.h
diff options
context:
space:
mode:
Diffstat (limited to 'display.h')
-rw-r--r--display.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/display.h b/display.h
index b9de932cb..8f972e358 100644
--- a/display.h
+++ b/display.h
@@ -6,12 +6,12 @@
#include <cairo.h>
extern int selected_dive;
+#define current_dive (get_dive(selected_dive))
+
extern GtkWidget *dive_profile_frame(void);
extern GtkWidget *dive_info_frame(void);
extern GtkWidget *create_dive_list(void);
extern void update_dive_info(struct dive *dive);
extern void repaint_dive(void);
-#define current_dive (dive_table.dives[selected_dive])
-
#endif