Fix missing (re)load when changing asset libraries

Logic to compare asset library references was incorrect.
This commit is contained in:
Julian Eisel 2022-02-17 21:35:34 +01:00
parent 91853d95a9
commit 2ce7f02a06
1 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,9 @@ AssetLibraryReferenceWrapper::AssetLibraryReferenceWrapper(const AssetLibraryRef
bool operator==(const AssetLibraryReferenceWrapper &a, const AssetLibraryReferenceWrapper &b)
{
return (a.type == b.type) && (a.type == ASSET_LIBRARY_CUSTOM) ?
(a.custom_library_index == b.custom_library_index) :
true;
return (a.type == b.type) &&
((a.type == ASSET_LIBRARY_CUSTOM) ? (a.custom_library_index == b.custom_library_index) :
true);
}
uint64_t AssetLibraryReferenceWrapper::hash() const