Fix Asset Loading Bug (#10698)

# Objective

- Fixes #10695

## Solution

Fixed obvious blunder in `PartialEq` implementation for
`UntypedAssetId`'s where the `TypeId` was not included in the
comparison. This was not picked up in the unit tests I added because
they only tested over a single asset type.
This commit is contained in:
Zachary Harrold 2023-11-23 00:39:44 +11:00 committed by GitHub
parent 208ecb53dc
commit f613c450bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
}
}