1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Merge pull request #1142 from vcmi/lobby

Support multi-language in online lobby
This commit is contained in:
Andrii Danylchenko 2022-11-15 18:07:17 +02:00 committed by nordsoft
commit e0aa26e599

View File

@ -67,9 +67,10 @@ void SocketLobby::requestReadySession(const QString & session)
void SocketLobby::send(const QString & msg)
{
int sz = msg.size();
QByteArray str = msg.toUtf8();
int sz = str.size();
QByteArray pack((const char *)&sz, sizeof(sz));
pack.append(qUtf8Printable(msg));
pack.append(str);
socket->write(pack);
}