1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

CSM: Fix duplicate player names (#13910)

This commit is contained in:
SmallJoker 2023-10-22 15:31:29 +02:00 committed by GitHub
parent 3491509b21
commit 2fbf5f4250
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 19 deletions

View file

@ -323,10 +323,10 @@ void TerminalChatConsole::step(int ch)
ChatEvent *evt = m_chat_interface->outgoing_queue.pop_frontNoEx();
switch (evt->type) {
case CET_NICK_REMOVE:
m_nicks.remove(((ChatEventNick *)evt)->nick);
m_nicks.erase(((ChatEventNick *)evt)->nick);
break;
case CET_NICK_ADD:
m_nicks.push_back(((ChatEventNick *)evt)->nick);
m_nicks.insert(((ChatEventNick *)evt)->nick);
break;
case CET_CHAT:
complete_redraw_needed = true;