aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-10-21 17:07:52 +0200
committerThomas White <taw@physics.org>2015-01-29 13:23:38 +0100
commit4c7ad11b03e00727b32ea6c1efd51d38cb868c83 (patch)
treefa663607c234f169b074844b54ff1a0ca0ea5987 /src
parent2a8b5489b7ba7dd8c61315b9e6bb1f7d8820b3c4 (diff)
Check further back before reusing a series slot
Diffstat (limited to 'src')
-rw-r--r--src/whirligig.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/whirligig.c b/src/whirligig.c
index 86687f1f..4049c5eb 100644
--- a/src/whirligig.c
+++ b/src/whirligig.c
@@ -377,6 +377,11 @@ static int find_available_series(struct window *win)
if ( win->ser[i][win->join_ptr-1] != -1 ) continue;
}
+ if ( win->join_ptr > 1 ) {
+ if ( win->ser[i][win->join_ptr-2] != -1 ) continue;
+ }
+
+
return i;
}