diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-23 16:10:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 16:10:06 +0200 |
commit | 1e699a92f0ec7f3396d2f1dcede23590bfe5fd6d (patch) | |
tree | 13830fb3bf3463c703e9eedb56574e5e16357ae4 /scene/multiplayer/scene_replication_interface.cpp | |
parent | 9b7db785ebafee5a0c185fea4ff73638bfd5bb57 (diff) | |
parent | 12474fd87ae5de819eee58d0d0bf0b9e2c521cfb (diff) |
Merge pull request #61297 from reduz/improve-synchronizer-usability
Improve MultiplayerSynchronizer and MultiplayerSpawner editor usability
Diffstat (limited to 'scene/multiplayer/scene_replication_interface.cpp')
-rw-r--r-- | scene/multiplayer/scene_replication_interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/multiplayer/scene_replication_interface.cpp b/scene/multiplayer/scene_replication_interface.cpp index 19c69adb4a..e4715ceb88 100644 --- a/scene/multiplayer/scene_replication_interface.cpp +++ b/scene/multiplayer/scene_replication_interface.cpp @@ -167,7 +167,7 @@ Error SceneReplicationInterface::_send_spawn(Node *p_node, MultiplayerSpawner *p uint32_t nid = rep_state->ensure_net_id(oid); // Prepare custom arg and scene_id - uint8_t scene_id = p_spawner->get_spawn_id(oid); + uint8_t scene_id = p_spawner->find_spawnable_scene_index_from_object(oid); bool is_custom = scene_id == MultiplayerSpawner::INVALID_ID; Variant spawn_arg = p_spawner->get_spawn_argument(oid); int spawn_arg_size = 0; |