Skip to content

Commit

Permalink
Reset chat history position
Browse files Browse the repository at this point in the history
  • Loading branch information
Deewarz committed Jan 11, 2025
1 parent b4dfb16 commit b2ac14a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/client/src/core/ui/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ namespace MafiaMP::Core::UI {
strcpy(_inputText, "");
}

_isFocused = false;
_historyPos = -1;
_isFocused = false;
LockControls(false);

if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {
Expand Down

0 comments on commit b2ac14a

Please sign in to comment.