Skip to content

Commit 91004df

Browse files
committed
[MP] Fix delta variables index decoding.
1 parent 3710f06 commit 91004df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/multiplayer/multiplayer_synchronizer.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,10 @@ List<NodePath> MultiplayerSynchronizer::get_delta_properties(uint64_t p_indexes)
433433
const List<NodePath> watch_props = replication_config->get_watch_properties();
434434
int idx = 0;
435435
for (const NodePath &prop : watch_props) {
436-
if ((p_indexes & (1ULL << idx)) == 0) {
436+
if ((p_indexes & (1ULL << idx++)) == 0) {
437437
continue;
438438
}
439439
out.push_back(prop);
440-
idx++;
441440
}
442441
return out;
443442
}

0 commit comments

Comments
 (0)