Fixing gcc problem with EncodeToBuf-function.

This commit is contained in:
lotodore
2013-09-15 23:11:15 +02:00
parent 36eeaee5d7
commit 84b9b56d6a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ ChatCleanerManager::SendMessageToServer(ChatCleanerMessage &msg)
google::protobuf::uint8 *buf = new google::protobuf::uint8[packetSize + CLEANER_NET_HEADER_SIZE];
*((uint32_t *)buf) = htonl(packetSize);
msg.SerializeWithCachedSizesToArray(&buf[CLEANER_NET_HEADER_SIZE]);
m_sendManager->EncodeToBuf(NULL, buf, packetSize + CLEANER_NET_HEADER_SIZE);
m_sendManager->EncodeToBuf(buf, packetSize + CLEANER_NET_HEADER_SIZE);
delete[] buf;
m_sendManager->AsyncSendNextPacket(m_socket);