Core/Misc: Fixed -Wmisleading-indentation warnings

(cherry picked from commit 3ac33163db2786cbd18f2158fc81d6ea9fa66316)

# Conflicts:
#	src/server/game/Server/Protocol/PacketLog.cpp
This commit is contained in:
Shauren authored and Aokromes committed 2016-05-12 09:10:53 +02:00
1 parent ff4da3acaa
commit af17e23204
12 files changed
+173 -171

No files matched your search

@@ -45,7 +45,7 @@ struct PacketHeader
uint32 SocketPort;
};
char Direction[4];
uint32 Direction;
uint32 ConnectionId;
uint32 ArrivalTicks;
uint32 OptionalDataSize;
@@ -109,7 +109,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 = 0;
header.ArrivalTicks = getMSTime();