From bee6525d1b7cd991f92e19f7d714749c945cc336 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 23 Apr 2016 13:22:03 +0200 Subject: Core/Misc: Fixed -Wmisleading-indentation warnings (cherry picked from commit 3ac33163db2786cbd18f2158fc81d6ea9fa66316) # Conflicts: # src/server/game/Server/Protocol/PacketLog.cpp --- src/server/game/Server/Protocol/PacketLog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/game/Server') diff --git a/src/server/game/Server/Protocol/PacketLog.cpp b/src/server/game/Server/Protocol/PacketLog.cpp index 11a02828998..114b2ae0ecc 100644 --- a/src/server/game/Server/Protocol/PacketLog.cpp +++ b/src/server/game/Server/Protocol/PacketLog.cpp @@ -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 lock(_logPacketLock); PacketHeader header; - *reinterpret_cast(header.Direction) = direction == CLIENT_TO_SERVER ? 0x47534d43 : 0x47534d53; + header.Direction = direction == CLIENT_TO_SERVER ? 0x47534d43 : 0x47534d53; header.ConnectionId = 0; header.ArrivalTicks = getMSTime(); -- cgit v1.2.3