mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Merge branch 'master' of https://github.com/TES3MP/openmw-tes3mp
This commit is contained in:
commit
eac1e80911
@ -76,12 +76,15 @@ namespace mwmp
|
|||||||
void RW(std::string &str, bool write)
|
void RW(std::string &str, bool write)
|
||||||
{
|
{
|
||||||
if (write)
|
if (write)
|
||||||
bs->Write(str.c_str());
|
{
|
||||||
|
RakNet::RakString rstr(str.c_str());
|
||||||
|
bs->Write(rstr);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char cstr[256];
|
RakNet::RakString rstr;
|
||||||
bs->Read(cstr);
|
bs->Read(rstr);
|
||||||
str = cstr;
|
str = rstr.C_String();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user