diff --git a/Code/Network/NetworkAPI/Translator.cpp b/Code/Network/NetworkAPI/Translator.cpp index a23cdd5d..0829913e 100644 --- a/Code/Network/NetworkAPI/Translator.cpp +++ b/Code/Network/NetworkAPI/Translator.cpp @@ -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; } \ No newline at end of file