mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-19 10:41:55 +00:00
SAGA2: Change code for readability
This commit is contained in:
parent
9a39a34a5d
commit
d038657294
@ -1321,12 +1321,13 @@ Thread *ThreadList::next(Thread *thread) {
|
|||||||
if (_list[i] == thread)
|
if (_list[i] == thread)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (i == kNumThreads)
|
i++;
|
||||||
|
if (i >= kNumThreads)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
for (int j = i + 1; j < kNumThreads; j++)
|
for (; i < kNumThreads; i++)
|
||||||
if (_list[j])
|
if (_list[i])
|
||||||
return _list[j];
|
return _list[i];
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user