[General] Empty strings should be sent too

This commit is contained in:
Koncord 2017-09-04 04:03:02 +08:00
parent d904628103
commit f5e23d5fc6

View File

@ -81,10 +81,7 @@ namespace mwmp
if (write) if (write)
{ {
if (compress) if (compress)
{ RakNet::RakString::SerializeCompressed(str.c_str(), bs);
if (!str.empty())
RakNet::RakString::SerializeCompressed(str.c_str(), bs);
}
else else
{ {
RakNet::RakString rstr; RakNet::RakString rstr;