diff --git a/src/reactor/reactor.cpp b/src/reactor/reactor.cpp index 62c69bc..11799f6 100644 --- a/src/reactor/reactor.cpp +++ b/src/reactor/reactor.cpp @@ -85,7 +85,7 @@ int reactor::move_cursor(int d) { goto logic; - while(cursor == size || !rods[cursor]->should_display()) + while(cursor != size && !rods[cursor]->should_display()) { logic: cursor = (cursor + d) % (size + 1);