Skip to content

Commit 6942532

Browse files
authored
Fix Clone impl of bevy_proto_bsn's ReflectedValue (#202)
1 parent 9b375fa commit 6942532

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/bevy_proto_bsn/src/bsn_reflect.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,7 @@ impl Clone for ReflectedValue {
207207
fn clone(&self) -> Self {
208208
Self {
209209
type_id: self.type_id,
210-
instance: self
211-
.instance
212-
.as_ref()
213-
.reflect_clone()
214-
.expect("Failed to clone instance"),
210+
instance: self.instance.as_ref().to_dynamic(),
215211
}
216212
}
217213
}

0 commit comments

Comments
 (0)