Fix compiler error in Windows
authorAntonioya <blendergit@gmail.com>
Tue, 23 Oct 2018 11:13:04 +0000 (13:13 +0200)
committerAntonioya <blendergit@gmail.com>
Tue, 23 Oct 2018 11:13:04 +0000 (13:13 +0200)
source/blender/blenkernel/intern/collection.c

index ece79fe4b37d244f2278d5a85149622e043f892f..51e508d7744f77752ca6affc83c3950850a8dba7 100644 (file)
@@ -231,7 +231,7 @@ Collection *BKE_collection_copy(Main *bmain, Collection *parent, Collection *col
 
        Collection *collection_new;
        BKE_id_copy_ex(bmain, &collection->id, (ID **)&collection_new, 0, false);
-       id_us_min(collection_new);  /* Copying add one user by default, need to get rid of that one. */
+       id_us_min(&collection_new->id);  /* Copying add one user by default, need to get rid of that one. */
 
        /* Optionally add to parent. */
        if (parent) {