Core: Integrate Ref::instantiate where possible
This commit is contained in:
parent
0f5f3bc954
commit
925b690c98
44 changed files with 81 additions and 81 deletions
|
|
@ -113,7 +113,7 @@ Ref<ENetPacketPeer> ENetConnection::connect_to_host(const String &p_address, int
|
|||
if (peer == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
out = Ref<ENetPacketPeer>(memnew(ENetPacketPeer(peer)));
|
||||
out.instantiate(peer);
|
||||
peers.push_back(out);
|
||||
return out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue