fix control rod selector
This commit is contained in:
parent
8ed3bd379a
commit
c25f8efbfe
|
@ -85,7 +85,7 @@ int reactor::move_cursor(int d)
|
||||||
{
|
{
|
||||||
goto logic;
|
goto logic;
|
||||||
|
|
||||||
while(cursor == size || !rods[cursor]->should_display())
|
while(cursor != size && !rods[cursor]->should_display())
|
||||||
{
|
{
|
||||||
logic: cursor = (cursor + d) % (size + 1);
|
logic: cursor = (cursor + d) % (size + 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue