unbreak chat for netplay (broken in last revision...)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4726 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-12-23 21:49:26 +00:00
parent 62b6af3259
commit 45307b7b38
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ void NetPlay::OnGUIEvent(wxCommandEvent& event)
{
value = 0x30;
// TODO : there seems to be a random bug here that i can't reproduce... looked like a loop bug :/
wxString chat_str = wxString::FromAscii(StringFromFormat("> %s : %s\n", m_nick.c_str(), m_Chat->GetValue().c_str()).c_str() );
wxString chat_str = wxString::Format(wxT("> %s : %s\n"), wxString(m_nick.c_str(), wxConvUTF8).c_str() , m_Chat->GetValue().c_str() );
int chat_size = (int)chat_str.size();
if(chat_size-m_nick.size()-6 > 0)
{