Corrent recent commit: off by one error

This commit is contained in:
2014-09-22 13:23:42 +10:00
parent d79e11fcc8
commit c9a7789bcf
2 changed files with 3 additions and 3 deletions

View File

@@ -71,8 +71,8 @@ void id_clear_lib_data(struct Main *bmain, struct ID *id);
struct ListBase *which_libbase(struct Main *mainlib, short type);
#define MAX_LIBARRAY 34
int set_listbasepointers(struct Main *main, struct ListBase **lb);
#define MAX_LIBARRAY 35
int set_listbasepointers(struct Main *main, struct ListBase *lb[MAX_LIBARRAY]);
void BKE_libblock_free(struct Main *bmain, void *idv);
void BKE_libblock_free_ex(struct Main *bmain, void *idv, bool do_id_user);

View File

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