You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
[MP] Fix orphan StringName on close.
Use a static StringName for the registered default interface name.
This commit is contained in:
@@ -43,7 +43,7 @@ StringName MultiplayerAPI::default_interface;
|
|||||||
|
|
||||||
void MultiplayerAPI::set_default_interface(const StringName &p_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));
|
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() {
|
StringName MultiplayerAPI::get_default_interface() {
|
||||||
|
|||||||
Reference in New Issue
Block a user