diff options
Diffstat (limited to 'core/io/tcp_server.cpp')
-rw-r--r-- | core/io/tcp_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/tcp_server.cpp b/core/io/tcp_server.cpp index 39dc6d8897..182b7c0aa8 100644 --- a/core/io/tcp_server.cpp +++ b/core/io/tcp_server.cpp @@ -114,7 +114,7 @@ Ref<StreamPeerTCP> TCPServer::take_connection() { return conn; } - conn = Ref<StreamPeerTCP>(memnew(StreamPeerTCP)); + conn.instantiate(); conn->accept_socket(ns, ip, port); return conn; } |