mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
[General] Avoid limitation of 512 symbols in RakString Ctor
This commit is contained in:
parent
74c9a26d16
commit
d904628103
@ -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…
x
Reference in New Issue
Block a user