Skip to content

Commit c950c1b

Browse files
committed
fix: order check
1 parent d9cf1c5 commit c950c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/Runtime/Core/CollectionsRegistry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public List<ScriptableObjectCollection> GetCollectionsByItemType(Type targetColl
226226
{
227227
ScriptableObjectCollection col = collections[i];
228228
Type collectionItemType = col.GetItemType();
229-
if (collectionItemType != null && collectionItemType.IsAssignableFrom(targetCollectionItemType))
229+
if (collectionItemType != null && targetCollectionItemType.IsAssignableFrom(collectionItemType))
230230
{
231231
result.Add(col);
232232
}

0 commit comments

Comments
 (0)