From 2f6db5802ff7ab522f77f1c0c0532cb0a5164ad2 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 27 Jul 2021 09:26:43 +0300 Subject: [PATCH] Fix CPU Profiler regression --- rpcs3/Emu/CPU/CPUThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/CPU/CPUThread.cpp b/rpcs3/Emu/CPU/CPUThread.cpp index d1d9003b88..e85043bc27 100644 --- a/rpcs3/Emu/CPU/CPUThread.cpp +++ b/rpcs3/Emu/CPU/CPUThread.cpp @@ -218,7 +218,7 @@ struct cpu_prof // Cleanup and print results for deleted threads for (auto it = threads.begin(), end = threads.end(); it != end;) { - if (cpu_flag::exit - it->second.ptr->state) + if (cpu_flag::exit & it->second.ptr->state) it->second.print(it->first), it = threads.erase(it); else it++;