mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-16 01:08:56 +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)
|
||||
break;
|
||||
|
||||
if (i == kNumThreads)
|
||||
i++;
|
||||
if (i >= kNumThreads)
|
||||
return nullptr;
|
||||
|
||||
for (int j = i + 1; j < kNumThreads; j++)
|
||||
if (_list[j])
|
||||
return _list[j];
|
||||
for (; i < kNumThreads; i++)
|
||||
if (_list[i])
|
||||
return _list[i];
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user