From aedd63f2062f74a462ccd0afcdb8de078d4d55e1 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Wed, 11 May 2022 18:27:58 +0100 Subject: [PATCH] Address review --- src/Components/Modules/Security.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/Modules/Security.cpp b/src/Components/Modules/Security.cpp index 86e8192a..aefa116e 100644 --- a/src/Components/Modules/Security.cpp +++ b/src/Components/Modules/Security.cpp @@ -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]; 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);