Network - Fixed clear string in Translator.

This commit is contained in:
Pontus Fransson 2013-12-18 00:21:00 +01:00
parent 745268eeed
commit d4e92d4bbe
1 changed files with 2 additions and 3 deletions

View File

@ -217,12 +217,11 @@ void Translator::Pack(OysterByte &bytes, CustomNetProtocol& protocol)
privateData->PackHeader(bytes, protocol);
privateData->PackMessage(bytes, protocol);
this->privateData->headerString.clear();
}
bool Translator::Unpack(CustomNetProtocol& protocol, OysterByte &bytes)
{
privateData->headerString.clear();
this->privateData->headerString.clear();
if(!privateData->UnpackHeader(protocol, bytes))
{
@ -230,6 +229,6 @@ bool Translator::Unpack(CustomNetProtocol& protocol, OysterByte &bytes)
}
privateData->UnpackMessage(protocol, bytes);
this->privateData->headerString.clear();
return true;
}