Core/Misc: Fixed -Wmisleading-indentation warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user