diff --git a/Code/Network/NetworkDependencies/Translator.cpp b/Code/Network/NetworkDependencies/Translator.cpp index ad622fdc..71525172 100644 --- a/Code/Network/NetworkDependencies/Translator.cpp +++ b/Code/Network/NetworkDependencies/Translator.cpp @@ -19,10 +19,10 @@ unsigned char* Translator::Translate( ProtocolHeader &header ) break; } - message->Translate(header, this->msg); - if(message != NULL) { + message->Translate(header, this->msg); + delete message; message = NULL; } diff --git a/Code/Network/OysterNetworkClient/ClientMain.cpp b/Code/Network/OysterNetworkClient/ClientMain.cpp index fa812365..47106f74 100644 --- a/Code/Network/OysterNetworkClient/ClientMain.cpp +++ b/Code/Network/OysterNetworkClient/ClientMain.cpp @@ -31,12 +31,6 @@ int main() chat(client); - //Recieve message - //client.Recv(msgRecv); - - //print message - //cout << msgRecv << endl; - ShutdownSockets(); system("pause");