Core/Network: Fixed packets being properly received only by the first player when broadcasted to everyone

Closes #12675
This commit is contained in:
Shauren committed 2014-07-28 16:37:42 +02:00
1 parent 440fff54b8
commit 7a888d03bd
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ void WorldSocket::AsyncWrite(WorldPacket& packet)
bool needsWriteStart = _writeQueue.empty();
_authCrypt.EncryptSend(header.header, header.getHeaderLength());
_writeQueue.emplace(header, std::move(packet));
_writeQueue.emplace(header, packet);
if (needsWriteStart)
AsyncWrite(_writeQueue.front());