summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 3ed233ddb..9e5d2c49e 100644
--- a/dive.h
+++ b/dive.h
@@ -166,6 +166,9 @@ struct dive_table {
extern struct dive_table dive_table;
+extern int selected_dive;
+#define current_dive (get_dive(selected_dive))
+
static inline struct dive *get_dive(unsigned int nr)
{
if (nr >= dive_table.nr)