PackedByteArray, Array slice end exclusive, rename subarray to slice

This commit is contained in:
Nathan Franke 2021-11-26 19:18:26 -06:00
parent b43281c8ab
commit dd30253cdc
No known key found for this signature in database
GPG key ID: 92164DCCF3B1F723
20 changed files with 166 additions and 157 deletions

View file

@ -207,7 +207,7 @@ Error MultiplayerReplicator::_send_default_spawn_despawn(int p_peer_id, const Re
const Vector<StringName> names = rel_path.get_names();
ERR_FAIL_COND_V(names.size() < 2, ERR_INVALID_PARAMETER);
NodePath parent = NodePath(names.subarray(0, names.size() - 2), false);
NodePath parent = NodePath(names.slice(0, names.size() - 1), false);
ERR_FAIL_COND_V_MSG(!root_node->has_node(parent), ERR_INVALID_PARAMETER, "Path not found: " + parent);
int path_id = 0;