From 5491fbee5b2dc6007847c3f92cc26b5246626e26 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 22 Nov 2024 16:35:00 +0100 Subject: [PATCH] Fix warning --- rpcs3/Emu/scoped_progress_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/scoped_progress_dialog.cpp b/rpcs3/Emu/scoped_progress_dialog.cpp index 35606b460..ababe3d19 100644 --- a/rpcs3/Emu/scoped_progress_dialog.cpp +++ b/rpcs3/Emu/scoped_progress_dialog.cpp @@ -91,8 +91,8 @@ scoped_progress_dialog::scoped_progress_dialog(std::string text) noexcept scoped_progress_dialog& scoped_progress_dialog::operator=(std::string text) noexcept { - // Exchange text atomically - g_progr_text_queue[m_text_index].exchange(make_single_value(std::move(text))); + // Set text atomically + g_progr_text_queue[m_text_index].store(make_single_value(std::move(text))); return *this; }