Commit 8db2e20c authored by Jean-Philip Desjardins's avatar Jean-Philip Desjardins
Browse files

Link ready threads at front of queue.

Fixes UT99 hanging when starting a game if we wait too long in the main menu.
Probably not the right fix, needs an hardware test to validate.
parent 49eecdee
......@@ -1575,7 +1575,7 @@ void CIopBios::LinkThread(uint32 threadId)
auto currentThread = m_threads[(*nextThreadId)];
if(currentThread->priority > thread->priority)
if(currentThread->priority >= thread->priority)
thread->nextThreadId = (*nextThreadId);
(*nextThreadId) = threadId;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment