diff --git a/crates/bevy_asset/src/id.rs b/crates/bevy_asset/src/id.rs index a75ae3858e07c..db641d4fb2608 100644 --- a/crates/bevy_asset/src/id.rs +++ b/crates/bevy_asset/src/id.rs @@ -271,7 +271,7 @@ impl Display for UntypedAssetId { impl PartialEq for UntypedAssetId { #[inline] fn eq(&self, other: &Self) -> bool { - self.internal().eq(&other.internal()) + self.type_id() == other.type_id() && self.internal().eq(&other.internal()) } }