Skip to content

Commit

Permalink
Merge pull request #83279 from Faless/mp/fix_delta_indexed
Browse files Browse the repository at this point in the history
[MP] Fix "on change" indexed properties
  • Loading branch information
akien-mga committed Oct 13, 2023
2 parents 1d38546 + 9d44954 commit 325cc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/multiplayer/multiplayer_synchronizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Error MultiplayerSynchronizer::_watch_changes(uint64_t p_usec) {
bool valid = false;
const Object *obj = _get_prop_target(node, prop);
ERR_CONTINUE_MSG(!obj, vformat("Node not found for property '%s'.", prop));
Variant v = obj->get(prop.get_concatenated_subnames(), &valid);
Variant v = obj->get_indexed(prop.get_subnames(), &valid);
ERR_CONTINUE_MSG(!valid, vformat("Property '%s' not found.", prop));
Watcher &w = ptr[idx];
if (w.prop != prop) {
Expand Down

0 comments on commit 325cc01

Please sign in to comment.