Correct MAX_LIBARRAY define, assert when its wrong

This commit is contained in:
Campbell Barton 2014-09-22 12:03:55 +10:00
parent 61baf6e813
commit 1004a7db97
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -620,6 +620,8 @@ int set_listbasepointers(Main *main, ListBase **lb)
lb[a] = NULL;
BLI_assert(a == MAX_LIBARRAY);
return a;
}