diff --git a/src/network/core/packet.cpp b/src/network/core/packet.cpp index a70bd6ca0c..5f48ed055c 100644 --- a/src/network/core/packet.cpp +++ b/src/network/core/packet.cpp @@ -141,7 +141,7 @@ bool Packet::CanReadFromPacket(uint bytes_to_read) /* Check if variable is within packet-size */ if (this->pos + bytes_to_read > this->size) { - this->cs->CloseConnection(); + this->cs->NetworkSocketHandler::CloseConnection(); return false; }