mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:49:58 +00:00
[General] Avoid limitation of 512 symbols in RakString Ctor
This commit is contained in:
parent
74c9a26d16
commit
d904628103
1 changed files with 8 additions and 2 deletions
|
@ -80,11 +80,17 @@ 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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue