[MP] Fix delta variables index decoding.
This commit is contained in:
parent
3710f06929
commit
91004df875
1 changed files with 1 additions and 2 deletions
|
|
@ -433,11 +433,10 @@ List<NodePath> MultiplayerSynchronizer::get_delta_properties(uint64_t p_indexes)
|
||||||
const List<NodePath> watch_props = replication_config->get_watch_properties();
|
const List<NodePath> watch_props = replication_config->get_watch_properties();
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
for (const NodePath &prop : watch_props) {
|
for (const NodePath &prop : watch_props) {
|
||||||
if ((p_indexes & (1ULL << idx)) == 0) {
|
if ((p_indexes & (1ULL << idx++)) == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
out.push_back(prop);
|
out.push_back(prop);
|
||||||
idx++;
|
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue