[General] Avoid limitation of 512 symbols in RakString Ctor

0.6.1
Koncord 7 years ago
parent 74c9a26d16
commit d904628103

@ -80,12 +80,18 @@ namespace mwmp
{
if (write)
{
RakNet::RakString rstr("%s", str.c_str());
if (compress)
rstr.SerializeCompressed(bs);
{
if (!str.empty())
RakNet::RakString::SerializeCompressed(str.c_str(), bs);
}
else
{
RakNet::RakString rstr;
rstr = str.c_str();
bs->Write(rstr);
}
}
else
{
RakNet::RakString rstr;

Loading…
Cancel
Save