From: Linus Torvalds Date: Sun, 11 Sep 2011 20:43:37 +0000 (-0700) Subject: Oops. Fix 'buffered dive' information X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=add58148bc30060e99e9c896fa4d390460c55694;p=ext%2Fsubsurface.git Oops. Fix 'buffered dive' information When fixing the unit changes, I broke the dive buffering logic entirely for switching between dives. Duh. Signed-off-by: Linus Torvalds --- diff --git a/main.c b/main.c index 138de29..360af84 100644 --- a/main.c +++ b/main.c @@ -98,12 +98,12 @@ void update_dive(struct dive *new_dive) if (old_dive) { flush_dive_info_changes(old_dive); flush_dive_equipment_changes(old_dive); - buffered_dive = new_dive; } if (new_dive) { show_dive_info(new_dive); show_dive_equipment(new_dive); } + buffered_dive = new_dive; } void repaint_dive(void)