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++;