Skip to content

Commit

Permalink
Merge pull request godotengine#78709 from Faless/mp/4.x_fix_delta_again
Browse files Browse the repository at this point in the history
[MP] Fix delta variables index decoding.
  • Loading branch information
akien-mga committed Jun 26, 2023
2 parents d08ba5f + 91004df commit 3aaa787
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/multiplayer/multiplayer_synchronizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3aaa787

Please sign in to comment.