You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Core: Integrate Ref::instantiate where possible
This commit is contained in:
@@ -112,7 +112,7 @@ Ref<StreamPeerTCP> TCPServer::take_connection() {
|
||||
return conn;
|
||||
}
|
||||
|
||||
conn = Ref<StreamPeerTCP>(memnew(StreamPeerTCP));
|
||||
conn.instantiate();
|
||||
conn->accept_socket(ns, ip, port);
|
||||
return conn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user