Address review

This commit is contained in:
FutureRave 2022-05-11 18:27:58 +01:00
parent b0537675cc
commit aedd63f206
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -94,11 +94,10 @@ namespace Components
return;
}
auto* msg = &Game::deferredQueue->msgs[Game::deferredQueue->send & 0xF];
auto* msg = &Game::deferredQueue->msgs[Game::deferredQueue->send % std::extent_v<decltype(Game::DeferredQueue::msgs)>];
std::memcpy(msg->data, net_message->data, net_message->cursize);
msg->datalen = net_message->cursize;
msg->addr.type = net_from->type;
msg->addr = *net_from;
InterlockedIncrement(&Game::deferredQueue->send);