diff --git a/rpcs3/Gui/ConLogFrame.cpp b/rpcs3/Gui/ConLogFrame.cpp index 7cef833cfe..df10da9ec4 100644 --- a/rpcs3/Gui/ConLogFrame.cpp +++ b/rpcs3/Gui/ConLogFrame.cpp @@ -73,7 +73,7 @@ struct gui_listener : logs::listener _new->msg += text; _new->msg += '\n'; - last = last->next = _new; + last.exchange(_new)->next = _new; } }