mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
minor updates
This commit is contained in:
@@ -1396,7 +1396,7 @@ void HandlePacket(Packet* packet) {
|
||||
}
|
||||
|
||||
default:
|
||||
// Need to use memcpy instead of reinterpret_cast to avoid UB
|
||||
// Need to use memcpy instead of reinterpret_cast to avoid misaligned reads, which are UB
|
||||
auto messageId = MessageType::World::INVALID;
|
||||
std::memcpy(&messageId, &packet->data[3], sizeof(MessageType::World));
|
||||
|
||||
|
Reference in New Issue
Block a user