minor updates

This commit is contained in:
jadebenn
2024-11-23 13:56:47 -08:00
parent 7740bbbaab
commit 6fa719c679
4 changed files with 14 additions and 14 deletions

View File

@@ -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));