Correct MAX_LIBARRAY define, assert when its wrong
This commit is contained in:
parent
61baf6e813
commit
1004a7db97
|
@ -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);
|
||||
|
|
|
@ -620,6 +620,8 @@ int set_listbasepointers(Main *main, ListBase **lb)
|
|||
|
||||
lb[a] = NULL;
|
||||
|
||||
BLI_assert(a == MAX_LIBARRAY);
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue