1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #87186 from Faless/mp/fix_remote_sync_cleanup

[MP] Fix remote net ID cleanup
This commit is contained in:
Rémi Verschelde
2024-02-03 23:18:35 +01:00
2 changed files with 2 additions and 1 deletions

View File

@@ -246,6 +246,7 @@ Error SceneReplicationInterface::on_replication_start(Object *p_obj, Variant p_c
uint32_t net_id = pending_sync_net_ids[0];
pending_sync_net_ids.pop_front();
peers_info[pending_spawn_remote].recv_sync_ids[net_id] = sync->get_instance_id();
sync->set_net_id(net_id);
// Try to apply spawn state (before ready).
if (pending_buffer_size > 0) {