diff options
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 7706ca9e5..4b68b555f 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -305,9 +305,9 @@ void Thread::RemoveMutexWaiter(SharedPtr<Thread> thread) { | |||
| 305 | void Thread::UpdatePriority() { | 305 | void Thread::UpdatePriority() { |
| 306 | // Find the highest priority among all the threads that are waiting for this thread's lock | 306 | // Find the highest priority among all the threads that are waiting for this thread's lock |
| 307 | u32 new_priority = nominal_priority; | 307 | u32 new_priority = nominal_priority; |
| 308 | for (const auto& thread : wait_mutex_threads) { | 308 | if (!wait_mutex_threads.empty()) { |
| 309 | if (thread->nominal_priority < new_priority) | 309 | if (wait_mutex_threads.front()->current_priority < new_priority) |
| 310 | new_priority = thread->nominal_priority; | 310 | new_priority = wait_mutex_threads.front()->current_priority; |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | if (new_priority == current_priority) | 313 | if (new_priority == current_priority) |