瀏覽代碼

[MP] Fix watch properties not being correctly removed

Fabio Alessandrelli 2 年之前
父節點
當前提交
3860f2e366
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/multiplayer/scene_replication_config.cpp

+ 1 - 0
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 {