Network - Fixed clear string in Translator.
This commit is contained in:
parent
745268eeed
commit
d4e92d4bbe
|
@ -217,12 +217,11 @@ void Translator::Pack(OysterByte &bytes, CustomNetProtocol& protocol)
|
||||||
|
|
||||||
privateData->PackHeader(bytes, protocol);
|
privateData->PackHeader(bytes, protocol);
|
||||||
privateData->PackMessage(bytes, protocol);
|
privateData->PackMessage(bytes, protocol);
|
||||||
this->privateData->headerString.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Translator::Unpack(CustomNetProtocol& protocol, OysterByte &bytes)
|
bool Translator::Unpack(CustomNetProtocol& protocol, OysterByte &bytes)
|
||||||
{
|
{
|
||||||
privateData->headerString.clear();
|
this->privateData->headerString.clear();
|
||||||
|
|
||||||
if(!privateData->UnpackHeader(protocol, bytes))
|
if(!privateData->UnpackHeader(protocol, bytes))
|
||||||
{
|
{
|
||||||
|
@ -230,6 +229,6 @@ bool Translator::Unpack(CustomNetProtocol& protocol, OysterByte &bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
privateData->UnpackMessage(protocol, bytes);
|
privateData->UnpackMessage(protocol, bytes);
|
||||||
this->privateData->headerString.clear();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Loading…
Reference in New Issue