diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-02-27 11:30:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 11:30:58 +0100 |
commit | 2e530c13175021c6c9ff71ed8f8539679035827a (patch) | |
tree | 109d4b80ef19cea1f96021e8f699c0580b22d77c | |
parent | 417ed3da2933fa3a51faf8ae15c1ee89bd4e5933 (diff) | |
parent | f9bcaccc112425fcc462c761bfcc82cc8030f318 (diff) |
Merge pull request #74031 from Faless/mp/4.x_fix_iface_sname
[MP] Fix orphan StringName on close.
-rw-r--r-- | scene/main/multiplayer_api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/multiplayer_api.cpp b/scene/main/multiplayer_api.cpp index 950eb2809c..35e4302bb7 100644 --- a/scene/main/multiplayer_api.cpp +++ b/scene/main/multiplayer_api.cpp @@ -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() { |