diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-06-26 12:33:30 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-06-26 12:33:30 +0200 |
commit | 91004df87515bea5f49dff483db630ea453b14f8 (patch) | |
tree | 8e41638d35277ce0b38b9cc35e78bbf2a8eed05f | |
parent | 3710f069293f2fde8afe33fea898c4b36fa5e943 (diff) | |
download | redot-engine-91004df87515bea5f49dff483db630ea453b14f8.tar.gz |
[MP] Fix delta variables index decoding.
-rw-r--r-- | modules/multiplayer/multiplayer_synchronizer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/multiplayer/multiplayer_synchronizer.cpp b/modules/multiplayer/multiplayer_synchronizer.cpp index e3c31352a7..e5207fdae2 100644 --- a/modules/multiplayer/multiplayer_synchronizer.cpp +++ b/modules/multiplayer/multiplayer_synchronizer.cpp @@ -433,11 +433,10 @@ List<NodePath> MultiplayerSynchronizer::get_delta_properties(uint64_t p_indexes) const List<NodePath> watch_props = replication_config->get_watch_properties(); int idx = 0; for (const NodePath &prop : watch_props) { - if ((p_indexes & (1ULL << idx)) == 0) { + if ((p_indexes & (1ULL << idx++)) == 0) { continue; } out.push_back(prop); - idx++; } return out; } |