Corrent recent commit: off by one error
This commit is contained in:
@@ -71,8 +71,8 @@ void id_clear_lib_data(struct Main *bmain, struct ID *id);
|
|||||||
|
|
||||||
struct ListBase *which_libbase(struct Main *mainlib, short type);
|
struct ListBase *which_libbase(struct Main *mainlib, short type);
|
||||||
|
|
||||||
#define MAX_LIBARRAY 34
|
#define MAX_LIBARRAY 35
|
||||||
int set_listbasepointers(struct Main *main, struct ListBase **lb);
|
int set_listbasepointers(struct Main *main, struct ListBase *lb[MAX_LIBARRAY]);
|
||||||
|
|
||||||
void BKE_libblock_free(struct Main *bmain, void *idv);
|
void BKE_libblock_free(struct Main *bmain, void *idv);
|
||||||
void BKE_libblock_free_ex(struct Main *bmain, void *idv, bool do_id_user);
|
void BKE_libblock_free_ex(struct Main *bmain, void *idv, bool do_id_user);
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ int set_listbasepointers(Main *main, ListBase **lb)
|
|||||||
|
|
||||||
lb[a] = NULL;
|
lb[a] = NULL;
|
||||||
|
|
||||||
BLI_assert(a == MAX_LIBARRAY);
|
BLI_assert(a + 1 == MAX_LIBARRAY);
|
||||||
|
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user