makesrna was failing because of a buffer overrun from an error in r25949

This commit is contained in:
Campbell Barton
2010-01-13 08:12:57 +00:00
parent 7df44b9ced
commit d2e7abec82

View File

@@ -553,7 +553,7 @@ static StructRNA* def_node(BlenderRNA *brna, int node_id)
static EnumPropertyItem* alloc_node_type_items(int category)
{
int i;
int count = 2;
int count = 3;
EnumPropertyItem *item, *items;
for(i=0; i<MaxNodes; i++)
@@ -589,6 +589,8 @@ static EnumPropertyItem* alloc_node_type_items(int category)
item++;
/* NOTE!, increase 'count' when adding items here */
memset(item, 0, sizeof(EnumPropertyItem));
return items;