From c25f8efbfe32ef8e5a8fae979686a36c37e85391 Mon Sep 17 00:00:00 2001 From: Jay Robson Date: Wed, 31 Jan 2024 00:53:28 +1100 Subject: [PATCH] fix control rod selector --- src/reactor/reactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);