Restore PCH builds and make GCC happy

This commit is contained in:
leak
2014-05-31 01:02:03 +02:00
parent b520f7da01
commit f05d540658
2 changed files with 3 additions and 2 deletions
@@ -2,5 +2,6 @@
#include "Database/DatabaseEnv.h"
#include "Log.h"
#include "RealmList.h"
#include "RealmSocket.h"
#include "AuthServer.h"
#include "AuthSession.h"
#include "Common.h"
+1 -1
View File
@@ -148,7 +148,7 @@ void AuthSession::AsyncReadHeader()
{
_socket.read_some(boost::asio::buffer(&_readBuffer[1], sizeof(uint8) + sizeof(uint16))); //error + size
AsyncReadData(entry.handler, (uint16)&_readBuffer[2], sizeof(uint8) + sizeof(uint8) + sizeof(uint16)); // cmd + error + size
AsyncReadData(entry.handler, *reinterpret_cast<uint16*>(&_readBuffer[2]), sizeof(uint8) + sizeof(uint8) + sizeof(uint16)); // cmd + error + size
}
else
{