### Godot version

Godot 4 beta 12

### System information

Windows 10

### Issue description

![tttttt](https://user-images.githubusercontent.com/43501741/212407759-2e3cfa93-c9c1-4224-a118-2d236b0c5318.png)


### Steps to reproduce

Run a project in Godot 4 beta 12

### Minimal reproduction project

N/A
if (p_res.is_null()) {
		return false;
	}
	if (processed.has(p_res)) {
		return processed[p_res];
	}
	bool changed = p_res->is_edited();
	p_res->set_edited(false);
	bool subchanged = _find_and_save_edited_subresources(p_res.ptr(), processed, flags);
	if (p_res->get_path().is_resource_file()) {
		if (changed || subchanged) {
			ResourceSaver::save(p_res, p_res->get_path(), flags);
		}
		processed[p_res] = false; 
		return false;
	} else {
		processed[p_res] = changed;
		return changed;
	}
}
bool EditorNode::_find_and_save_edited_subresources(Object *obj, HashMap<Ref<Resource>, bool> &processed, int32_t flags) {