diff options
author | Nathan Franke <natfra@pm.me> | 2021-11-26 19:18:26 -0600 |
---|---|---|
committer | Nathan Franke <natfra@pm.me> | 2021-11-26 22:13:12 -0600 |
commit | dd30253cdcf9b43e401cb3ba6b973f8890551a81 (patch) | |
tree | e4635fdb01090bc6b3e8d5179a0f4588f6a4f61e /core/multiplayer/multiplayer_replicator.cpp | |
parent | b43281c8abf2d16d65f75817f0554a9b8ee044aa (diff) | |
download | redot-engine-dd30253cdcf9b43e401cb3ba6b973f8890551a81.tar.gz |
PackedByteArray, Array slice end exclusive, rename subarray to slice
Diffstat (limited to 'core/multiplayer/multiplayer_replicator.cpp')
-rw-r--r-- | core/multiplayer/multiplayer_replicator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multiplayer/multiplayer_replicator.cpp b/core/multiplayer/multiplayer_replicator.cpp index 6604510394..c57562552a 100644 --- a/core/multiplayer/multiplayer_replicator.cpp +++ b/core/multiplayer/multiplayer_replicator.cpp @@ -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; |