fix control rod selector
This commit is contained in:
parent
9178364f99
commit
7bdb04e89d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue