NetWindow: Make chat messages queue private

This doesn't need to be publicly accessable.
This commit is contained in:
Lioncash
2017-02-06 13:02:02 -05:00
parent e4c17f126c
commit 2597d2b69b
2 changed files with 4 additions and 5 deletions

View File

@ -386,7 +386,7 @@ void NetPlayDialog::Update()
void NetPlayDialog::AppendChat(const std::string& msg)
{
chat_msgs.Push(msg);
m_chat_msgs.Push(msg);
// silly
Update();
}
@ -613,10 +613,10 @@ void NetPlayDialog::OnThread(wxThreadEvent& event)
}
// chat messages
while (chat_msgs.Size())
while (m_chat_msgs.Size())
{
std::string s;
chat_msgs.Pop(s);
m_chat_msgs.Pop(s);
AddChatMessage(ChatMessageType::UserIn, s);
if (g_ActiveConfig.bShowNetPlayMessages)