fix control rod selector

This commit is contained in:
Jay Robson 2024-01-31 00:53:28 +11:00
parent 9178364f99
commit 7bdb04e89d
1 changed files with 1 additions and 1 deletions

View File

@ -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);