From 3ac33163db2786cbd18f2158fc81d6ea9fa66316 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 --- src/server/game/Server/Protocol/PacketLog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/game/Server/Protocol') diff --git a/src/server/game/Server/Protocol/PacketLog.cpp b/src/server/game/Server/Protocol/PacketLog.cpp index 2d088606023..a8e349c15ab 100644 --- a/src/server/game/Server/Protocol/PacketLog.cpp +++ b/src/server/game/Server/Protocol/PacketLog.cpp @@ -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 lock(_logPacketLock); PacketHeader header; - *reinterpret_cast(header.Direction) = direction == CLIENT_TO_SERVER ? 0x47534d43 : 0x47534d53; + header.Direction = direction == CLIENT_TO_SERVER ? 0x47534d43 : 0x47534d53; header.ConnectionId = connectionType; header.ArrivalTicks = getMSTime(); -- cgit v1.2.3