From 560c52cef26f6a0560c7222a407ae1dbae171bbe Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 27 Aug 2023 10:53:04 +0200 Subject: [PATCH] [MP] Fix watch properties not being correctly removed (cherry picked from commit 3860f2e36698eac4a1e045ef1a626d0982207e7c) --- modules/multiplayer/scene_replication_config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/multiplayer/scene_replication_config.cpp b/modules/multiplayer/scene_replication_config.cpp index af6af35219d..db615f8c20f 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 {