Core/PacketIO: ported a refactor that was sneaked into e59eef5432

This commit is contained in:
Ovahlord
2024-08-04 14:47:58 +02:00
parent a57712d238
commit 84b16b38c5

View File

@@ -151,7 +151,7 @@ void WorldSocket::InitializeHandler(boost::system::error_code const& error, std:
try
{
ByteBuffer buffer(std::move(_packetBuffer));
std::string initializer = buffer.ReadString(ClientConnectionInitialize.length());
std::string initializer(buffer.ReadString(ClientConnectionInitialize.length()));
if (initializer != ClientConnectionInitialize)
{
CloseSocket();