Core/Misc: Fixed -Wmisleading-indentation warnings

This commit is contained in:
Shauren
2016-04-23 13:22:03 +02:00
parent 67fd3ee726
commit 3ac33163db
12 changed files with 173 additions and 171 deletions
@@ -46,7 +46,7 @@ struct PacketHeader
uint32 SocketPort;
};
char Direction[4];
uint32 Direction;
uint32 ConnectionId;
uint32 ArrivalTicks;
uint32 OptionalDataSize;
@@ -110,7 +110,7 @@ void PacketLog::LogPacket(WorldPacket const& packet, Direction direction, boost:
std::lock_guard<std::mutex> lock(_logPacketLock);
PacketHeader header;
*reinterpret_cast<uint32*>(header.Direction) = direction == CLIENT_TO_SERVER ? 0x47534d43 : 0x47534d53;
header.Direction = direction == CLIENT_TO_SERVER ? 0x47534d43 : 0x47534d53;
header.ConnectionId = connectionType;
header.ArrivalTicks = getMSTime();