From b2ac14ac7fc0245bf0f4d1f5802a7bafce71598a Mon Sep 17 00:00:00 2001 From: Deewarz Date: Sat, 11 Jan 2025 23:07:55 +0100 Subject: [PATCH] Reset chat history position --- code/client/src/core/ui/chat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/client/src/core/ui/chat.cpp b/code/client/src/core/ui/chat.cpp index 6b99c25..7361cc3 100644 --- a/code/client/src/core/ui/chat.cpp +++ b/code/client/src/core/ui/chat.cpp @@ -93,7 +93,8 @@ namespace MafiaMP::Core::UI { strcpy(_inputText, ""); } - _isFocused = false; + _historyPos = -1; + _isFocused = false; LockControls(false); if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {