VERY experimental Nintendo Switch 2 emulator
C++
kernel/thread: Make bracing consistent within UpdatePriority()
Lioncashc92e8f4e3068
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 4b68b555f8..c5cee12dd3 100644--- a/src/core/hle/kernel/thread.cpp+++ b/src/core/hle/kernel/thread.cpp@@ -306,12 +306,14 @@ void Thread::UpdatePriority() {// Find the highest priority among all the threads that are waiting for this thread's locku32 new_priority = nominal_priority;if (!wait_mutex_threads.empty()) {- if (wait_mutex_threads.front()->current_priority < new_priority)+ if (wait_mutex_threads.front()->current_priority < new_priority) {new_priority = wait_mutex_threads.front()->current_priority;+ }}- if (new_priority == current_priority)+ if (new_priority == current_priority) {return;+ }scheduler->SetThreadPriority(this, new_priority);current_priority = new_priority;