diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-09-22 06:03:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-09-22 06:04:14 +0400 |
commit | 1004a7db977064b438814b1d11ce513b5e1799fa (patch) | |
tree | 9e1b751e0d3f4e8eaad8bc89a34489f9e808698c | |
parent | 61baf6e8135d11bc53cbfa45c75f910a99e57971 (diff) |
Correct MAX_LIBARRAY define, assert when its wrong
-rw-r--r-- | source/blender/blenkernel/BKE_library.h | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h index 1d37f9e64e1..27951969e89 100644 --- a/source/blender/blenkernel/BKE_library.h +++ b/source/blender/blenkernel/BKE_library.h @@ -71,7 +71,7 @@ void id_clear_lib_data(struct Main *bmain, struct ID *id); struct ListBase *which_libbase(struct Main *mainlib, short type); -#define MAX_LIBARRAY 43 +#define MAX_LIBARRAY 34 int set_listbasepointers(struct Main *main, struct ListBase **lb); void BKE_libblock_free(struct Main *bmain, void *idv); diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index 515287de336..15a4a83bef6 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -620,6 +620,8 @@ int set_listbasepointers(Main *main, ListBase **lb) lb[a] = NULL; + BLI_assert(a == MAX_LIBARRAY); + return a; } |