forked from teamnwah/openmw-tes3coop
Merge branch 'master' of https://github.com/TES3MP/openmw-tes3mp
This commit is contained in:
commit
eac1e80911
1 changed files with 7 additions and 4 deletions
|
@ -76,12 +76,15 @@ namespace mwmp
|
|||
void RW(std::string &str, bool write)
|
||||
{
|
||||
if (write)
|
||||
bs->Write(str.c_str());
|
||||
{
|
||||
RakNet::RakString rstr(str.c_str());
|
||||
bs->Write(rstr);
|
||||
}
|
||||
else
|
||||
{
|
||||
char cstr[256];
|
||||
bs->Read(cstr);
|
||||
str = cstr;
|
||||
RakNet::RakString rstr;
|
||||
bs->Read(rstr);
|
||||
str = rstr.C_String();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue