Fix Multiplayer Spawner freeing node after client disconnected Issue
This commit is contained in:
parent
b7feebefab
commit
1a9d95f933
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ void SceneCacheInterface::on_peer_change(int p_id, bool p_connected) {
|
|||
for (KeyValue<int, ObjectID> E : pinfo->recv_nodes) {
|
||||
NodeCache *nc = nodes_cache.getptr(E.value);
|
||||
ERR_CONTINUE(!nc);
|
||||
nc->recv_ids.erase(E.key);
|
||||
nc->recv_ids.erase(p_id);
|
||||
}
|
||||
for (const ObjectID &oid : pinfo->sent_nodes) {
|
||||
NodeCache *nc = nodes_cache.getptr(oid);
|
||||
|
|
Loading…
Reference in a new issue