Merge pull request #78709 from Faless/mp/4.x_fix_delta_again

[MP] Fix delta variables index decoding.
This commit is contained in:
Rémi Verschelde 2023-06-26 14:57:12 +02:00
commit 3aaa787094
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}