Merge pull request #74031 from Faless/mp/4.x_fix_iface_sname

[MP] Fix orphan StringName on close.
This commit is contained in:
Rémi Verschelde 2023-02-27 11:30:58 +01:00 committed by GitHub
commit 2e530c1317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ StringName MultiplayerAPI::default_interface;
void MultiplayerAPI::set_default_interface(const StringName &p_interface) {
ERR_FAIL_COND_MSG(!ClassDB::is_parent_class(p_interface, MultiplayerAPI::get_class_static()), vformat("Can't make %s the default multiplayer interface since it does not extend MultiplayerAPI.", p_interface));
default_interface = p_interface;
default_interface = StringName(p_interface, true);
}
StringName MultiplayerAPI::get_default_interface() {