summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-08-27 10:53:04 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-08-27 10:53:04 +0200
commit3860f2e36698eac4a1e045ef1a626d0982207e7c (patch)
tree3efea8ddebcc2b227a81b619db564b3cdfe755ab
parent6da4ad16624484398331f393b503f8b5e2888c51 (diff)
downloadredot-engine-3860f2e36698eac4a1e045ef1a626d0982207e7c.tar.gz
[MP] Fix watch properties not being correctly removed
-rw-r--r--modules/multiplayer/scene_replication_config.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/multiplayer/scene_replication_config.cpp b/modules/multiplayer/scene_replication_config.cpp
index af6af35219..db615f8c20 100644
--- a/modules/multiplayer/scene_replication_config.cpp
+++ b/modules/multiplayer/scene_replication_config.cpp
@@ -162,6 +162,7 @@ void SceneReplicationConfig::remove_property(const NodePath &p_path) {
properties.erase(p_path);
sync_props.erase(p_path);
spawn_props.erase(p_path);
+ watch_props.clear();
}
bool SceneReplicationConfig::has_property(const NodePath &p_path) const {