From a102688f5cc113122dba45c355a5961660d51344 Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Wed, 15 Mar 2023 03:57:05 -0500 Subject: [PATCH] Fix: Chat history in wrong order, doesn't pop up --- src/openrct2/interface/Chat.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2/interface/Chat.cpp b/src/openrct2/interface/Chat.cpp index 207c5be17f..f9420f5a34 100644 --- a/src/openrct2/interface/Chat.cpp +++ b/src/openrct2/interface/Chat.cpp @@ -222,12 +222,12 @@ void ChatAddHistory(std::string_view s) if (_chatHistory.size() >= CHAT_HISTORY_SIZE) { - _chatHistory.pop_front(); - _chatHistoryTime.pop_front(); + _chatHistory.pop_back(); + _chatHistoryTime.pop_back(); } - _chatHistory.push_back(buffer); - _chatHistoryTime.push_back(Platform::GetTicks()); + _chatHistory.push_front(buffer); + _chatHistoryTime.push_front(Platform::GetTicks()); // Log to file (src only as logging does its own timestamp) NetworkAppendChatLog(s);